From 4a67753cccac52fda7664cfd716b9537d6a6ee1b Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 22 Nov 2005 11:35:09 +0000 Subject: [PATCH] examples/seeking/seek.c: Give higher priority to bus signals than the gtk events to fix a race condition in the segme... 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 | 6 ++++++ examples/seeking/seek.c | 2 +- tests/examples/seek/seek.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f0fab85..e54fd78 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-11-22 Wim Taymans + + * 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 * ext/theora/Makefile.am: diff --git a/examples/seeking/seek.c b/examples/seeking/seek.c index a688b1a..63c2227 100644 --- a/examples/seeking/seek.c +++ b/examples/seeking/seek.c @@ -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, diff --git a/tests/examples/seek/seek.c b/tests/examples/seek/seek.c index a688b1a..63c2227 100644 --- a/tests/examples/seek/seek.c +++ b/tests/examples/seek/seek.c @@ -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, -- 2.7.4