mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
making wait for REAPING state when gst_bin_iterate returns non zero
Original commit message from CVS: making wait for REAPING state when gst_bin_iterate returns non zero
This commit is contained in:
parent
d2c506810a
commit
8c5bad4956
1 changed files with 3 additions and 2 deletions
|
@ -346,10 +346,11 @@ gst_thread_main_loop (void *arg)
|
|||
while (!GST_FLAG_IS_SET (thread, GST_THREAD_STATE_REAPING)) {
|
||||
if (GST_FLAG_IS_SET (thread, GST_THREAD_STATE_SPINNING)) {
|
||||
if (!gst_bin_iterate (GST_BIN (thread))) {
|
||||
g_mutex_lock(thread->lock);
|
||||
/*g_mutex_lock(thread->lock);
|
||||
GST_FLAG_UNSET (thread, GST_THREAD_STATE_SPINNING);
|
||||
GST_DEBUG(0,"sync: removed spinning state due to failed iteration\n");
|
||||
g_mutex_unlock(thread->lock);
|
||||
g_mutex_unlock(thread->lock);*/
|
||||
gst_thread_wait_thread(thread,GST_THREAD_STATE_REAPING);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue