mfdevice: Unregister device notification callback on stop

... as intended

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8405>
This commit is contained in:
Seungha Yang 2025-02-04 05:27:20 +09:00 committed by GStreamer Marge Bot
parent 972da9cab9
commit bf98e200b2

View file

@ -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);