summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-03-27 16:15:55 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2009-03-27 16:15:55 +0100
commit659e1d2dc25640fa058031bb39e3fc7f88de590a (patch)
tree7f070cf9ec0c177737d4536bb6efee399be21e5b
parentffc752c45855fcfc999ba30497ce1777adc2d4f0 (diff)
clock: wakeup the async thread a bit more
Also wake up the async thread when it is doing an async wait for an entry.
-rw-r--r--gst/gstsystemclock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/gstsystemclock.c b/gst/gstsystemclock.c
index bc87ab7de8..74d1452745 100644
--- a/gst/gstsystemclock.c
+++ b/gst/gstsystemclock.c
@@ -93,6 +93,7 @@ static void gst_system_clock_id_unschedule (GstClock * clock,
GstClockEntry * entry);
static void gst_system_clock_async_thread (GstClock * clock);
static gboolean gst_system_clock_start_async (GstSystemClock * clock);
+static void gst_system_clock_add_wakeup (GstSystemClock * sysclock);
static GStaticMutex _gst_sysclock_mutex = G_STATIC_MUTEX_INIT;
@@ -214,6 +215,7 @@ gst_system_clock_dispose (GObject * object)
g_list_free (clock->entries);
clock->entries = NULL;
GST_CLOCK_BROADCAST (clock);
+ gst_system_clock_add_wakeup (sysclock);
GST_OBJECT_UNLOCK (clock);
if (sysclock->thread)