summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 73ee143)
raw | patch | inline | side by side (parent: 73ee143)
author | Wim Taymans <wim.taymans@collabora.co.uk> | |
Thu, 21 Oct 2010 00:02:29 +0000 (02:02 +0200) | ||
committer | Wim Taymans <wim.taymans@collabora.co.uk> | |
Fri, 3 Dec 2010 14:50:38 +0000 (15:50 +0100) |
gst/gstpoll.c | patch | blob | history |
diff --git a/gst/gstpoll.c b/gst/gstpoll.c
index 55588c318b2357a5d6485e4ba001d9ec7f179001..3ad74b17ee32c9667b487944ca21ed23dc4672a4 100644 (file)
--- a/gst/gstpoll.c
+++ b/gst/gstpoll.c
static void
gst_poll_check_ctrl_commands (GstPoll * set, gint res, gboolean * restarting)
{
+ g_mutex_lock (set->lock);
/* check if the poll/select was aborted due to a command */
if (set->controllable) {
#ifndef G_OS_WIN32
}
#endif
}
+ g_mutex_unlock (set->lock);
}
/**
}
if (!is_timer) {
- g_mutex_lock (set->lock);
gst_poll_check_ctrl_commands (set, res, &restarting);
- g_mutex_unlock (set->lock);
}
/* update the controllable state if needed */