hlsdemux: don't print an error if the download was cancelled

This commit is contained in:
Andoni Morales Alastruey 2011-02-16 03:51:08 +01:00 committed by Sebastian Dröge
parent 4602b42dee
commit c599e4a9a1

View 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;
}