GstWasapiDeviceProvider *self = GST_WASAPI_DEVICE_PROVIDER (provider);
GList *devices = NULL;
- if (!gst_wasapi_util_get_devices (GST_ELEMENT (self), TRUE, &devices))
+ if (!gst_wasapi_util_get_devices (GST_OBJECT (self), TRUE, &devices))
GST_ERROR_OBJECT (self, "Failed to enumerate devices");
return devices;
}
static IMMDeviceEnumerator *
-gst_wasapi_util_get_device_enumerator (GstElement * self)
+gst_wasapi_util_get_device_enumerator (GstObject * self)
{
HRESULT hr;
IMMDeviceEnumerator *enumerator = NULL;
}
gboolean
-gst_wasapi_util_get_devices (GstElement * self, gboolean active,
+gst_wasapi_util_get_devices (GstObject * self, gboolean active,
GList ** devices)
{
gboolean res = FALSE;
IMMDevice *device = NULL;
IAudioClient *client = NULL;
- if (!(enumerator = gst_wasapi_util_get_device_enumerator (self)))
+ if (!(enumerator = gst_wasapi_util_get_device_enumerator (GST_OBJECT (self))))
goto beach;
if (!device_strid) {
gchar *gst_wasapi_util_hresult_to_string (HRESULT hr);
-gboolean gst_wasapi_util_get_devices (GstElement * element, gboolean active,
+gboolean gst_wasapi_util_get_devices (GstObject * element, gboolean active,
GList ** devices);
gboolean gst_wasapi_util_get_device_client (GstElement * element,