Commit 5488653c authored by Peter Seiderer's avatar Peter Seiderer
Browse files

Gstreamer: Use gst_bus_remove_watch() instead of g_source_remove()


Avoids critcial warning ('GLib-CRITICAL **: Source ID 10 was not found when
attempting to remove it') in case the applications initiates another glib
context/main loop.

The new gst_bus_remove_watch() is available since gstreamer API 1.6,
otherwise fall back to g_source_remove().

Task-number: QTBUG-69468
Change-Id: I4343865cb41a2d62ac4b0c0c04f60f13727f56d0
Reviewed-by: default avatarVaL Doroshchuk <valentyn.doroshchuk@qt.io>
parent 448c9929
Branches
Tags
No related merge requests found
Showing with 4 additions and 0 deletions
......@@ -79,7 +79,11 @@ public:
delete m_intervalTimer;
if (m_tag)
#if GST_CHECK_VERSION(1, 6, 0)
gst_bus_remove_watch(m_bus);
#else
g_source_remove(m_tag);
#endif
}
GstBus* bus() const { return m_bus; }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment