hlsdemux: don't print an error if the download was cancelled
authorAndoni Morales Alastruey <ylatuya@gmail.com>
Wed, 16 Feb 2011 02:51:08 +0000 (03:51 +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 67db0c11ed008668b0fc8e4f1232ff027344b029..35c68a449744f25960c7f6c80ab52896f3d0b88a 100644 (file)
@@ -649,7 +649,7 @@ gst_hls_demux_update_thread (GstHLSDemux * demux)
 
     /* fetch the next fragment */
     if (!gst_hls_demux_get_next_fragment (demux, TRUE)) {
-      if (!demux->end_of_playlist)
+      if (!demux->end_of_playlist && !demux->cancelled)
         GST_ERROR_OBJECT (demux, "Could not fetch the next fragment");
       goto quit;
     }