mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
fix deadlock when thread itself goes PLAYING => PAUSED => PLAYING
Original commit message from CVS: fix deadlock when thread itself goes PLAYING => PAUSED => PLAYING
This commit is contained in:
parent
9837c9dbaa
commit
91d22b150d
1 changed files with 3 additions and 0 deletions
|
@ -424,6 +424,9 @@ gst_thread_change_state (GstElement *element)
|
|||
gst_element_enable_threadsafe_properties ((GstElement*)elements->data);
|
||||
elements = g_list_next (elements);
|
||||
}
|
||||
/* reset self to spinning */
|
||||
if (thread == gst_thread_get_current())
|
||||
GST_FLAG_SET (thread, GST_THREAD_STATE_SPINNING);
|
||||
break;
|
||||
}
|
||||
case GST_STATE_PLAYING_TO_PAUSED:
|
||||
|
|
Loading…
Reference in a new issue