hlsdemux: dispose the fetcher from the same thread it's created

This commit is contained in:
Andoni Morales Alastruey 2011-04-13 22:17:05 +02:00 committed by Tim-Philipp Müller
parent 3cadddba83
commit b49461df48

View file

@ -305,7 +305,7 @@ gst_hls_demux_change_state (GstElement * element, GstStateChange transition)
switch (transition) { switch (transition) {
case GST_STATE_CHANGE_PAUSED_TO_READY: case GST_STATE_CHANGE_PAUSED_TO_READY:
demux->cancelled = TRUE; demux->cancelled = TRUE;
gst_hls_demux_stop_fetcher (demux, TRUE); g_cond_signal (demux->fetcher_cond);
break; break;
default: default:
break; break;