examples/seeking/seek.c: Give higher priority to bus signals than the gtk events...
authorWim Taymans <wim.taymans@gmail.com>
Tue, 22 Nov 2005 11:35:09 +0000 (11:35 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Tue, 22 Nov 2005 11:35:09 +0000 (11:35 +0000)
Original commit message from CVS:
* examples/seeking/seek.c: (main):
Give higher priority to bus signals than the gtk events
to fix a race condition in the segment looping.

ChangeLog
examples/seeking/seek.c
tests/examples/seek/seek.c

index f0fab852ce63c57fbb84d501f2158a3b92c766b0..e54fd78a4a72919908ffca2f7abff0444be8ad8c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-11-22  Wim Taymans  <wim@fluendo.com>
+
+       * examples/seeking/seek.c: (main):
+       Give higher priority to bus signals than the gtk events
+       to fix a race condition in the segment looping.
+
 2005-11-22  Tim-Philipp Müller  <tim at centricular dot net>
 
        * ext/theora/Makefile.am:
index a688b1a0313581e0f3a5d9ee6a5188627ee5233b..63c2227da43a786e675830387e1d0f1bf7816f3d 100644 (file)
@@ -1430,7 +1430,7 @@ main (int argc, char **argv)
     GstBus *bus;
 
     bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline));
-    gst_bus_add_signal_watch (bus);
+    gst_bus_add_signal_watch_full (bus, G_PRIORITY_HIGH);
 
 //    g_signal_connect (bus, "message::state-changed", (GCallback) message_received, pipeline);
     g_signal_connect (bus, "message::new-clock", (GCallback) message_received,
index a688b1a0313581e0f3a5d9ee6a5188627ee5233b..63c2227da43a786e675830387e1d0f1bf7816f3d 100644 (file)
@@ -1430,7 +1430,7 @@ main (int argc, char **argv)
     GstBus *bus;
 
     bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline));
-    gst_bus_add_signal_watch (bus);
+    gst_bus_add_signal_watch_full (bus, G_PRIORITY_HIGH);
 
 //    g_signal_connect (bus, "message::state-changed", (GCallback) message_received, pipeline);
     g_signal_connect (bus, "message::new-clock", (GCallback) message_received,