hlsdemux: make sure the fetcher state change is complete before continuing
authorAndoni Morales Alastruey <ylatuya@gmail.com>
Wed, 16 Feb 2011 02:49:49 +0000 (03:49 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 30 Mar 2011 07:19:22 +0000 (09:19 +0200)
gst/hls/gsthlsdemux.c

index 1fe68cae4b8dd813888a9f0943e2e2c8d31fb8e7..67db0c11ed008668b0fc8e4f1232ff027344b029 100644 (file)
@@ -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) {