diff --git a/subprojects/gst-plugins-bad/sys/mediafoundation/gstwin32devicewatcher.cpp b/subprojects/gst-plugins-bad/sys/mediafoundation/gstwin32devicewatcher.cpp index fbb61e3014..c6a26f0616 100644 --- a/subprojects/gst-plugins-bad/sys/mediafoundation/gstwin32devicewatcher.cpp +++ b/subprojects/gst-plugins-bad/sys/mediafoundation/gstwin32devicewatcher.cpp @@ -387,7 +387,7 @@ gst_win32_device_watcher_stop (GstWin32DeviceWatcher * watcher) data.handled = FALSE; g_main_context_invoke (watcher->context, - (GSourceFunc) register_device_notification, &data); + (GSourceFunc) unregister_device_notification, &data); g_mutex_lock (&watcher->lock); while (!data.handled) g_cond_wait (&watcher->cond, &watcher->lock);