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:
Benjamin Otte 2003-04-28 00:01:31 +00:00
parent 9837c9dbaa
commit 91d22b150d

View file

@ -424,6 +424,9 @@ gst_thread_change_state (GstElement *element)
gst_element_enable_threadsafe_properties ((GstElement*)elements->data); gst_element_enable_threadsafe_properties ((GstElement*)elements->data);
elements = g_list_next (elements); elements = g_list_next (elements);
} }
/* reset self to spinning */
if (thread == gst_thread_get_current())
GST_FLAG_SET (thread, GST_THREAD_STATE_SPINNING);
break; break;
} }
case GST_STATE_PLAYING_TO_PAUSED: case GST_STATE_PLAYING_TO_PAUSED: