From 4602b42dee03a78b65f00b2321ac6be750d9477d Mon Sep 17 00:00:00 2001 From: Andoni Morales Alastruey Date: Wed, 16 Feb 2011 03:49:49 +0100 Subject: [PATCH] hlsdemux: make sure the fetcher state change is complete before continuing --- gst/hls/gsthlsdemux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/hls/gsthlsdemux.c b/gst/hls/gsthlsdemux.c index 1fe68cae4b..67db0c11ed 100644 --- a/gst/hls/gsthlsdemux.c +++ b/gst/hls/gsthlsdemux.c @@ -431,6 +431,7 @@ gst_hls_demux_stop_fetcher (GstHLSDemux * demux, gboolean cancelled) demux->stopping_fetcher = TRUE; /* set the element state to NULL */ gst_element_set_state (demux->fetcher, GST_STATE_NULL); + gst_element_get_state (demux->fetcher, NULL, NULL, GST_CLOCK_TIME_NONE); /* unlink it from the internal pad */ pad = gst_pad_get_peer (demux->fetcherpad); if (pad) {