hlsdemux: do not post an error if we seek/cancel during caching of fragments

This commit is contained in:
Youness Alaoui 2011-08-25 23:37:25 +00:00 committed by Sebastian Dröge
parent d69297a23c
commit 015d1e11e2

View file

@ -751,9 +751,11 @@ end_of_playlist:
cache_error:
{
GST_ELEMENT_ERROR (demux, RESOURCE, NOT_FOUND,
("Could not cache the first fragments"), (NULL));
gst_hls_demux_stop (demux);
if (!demux->cancelled) {
GST_ELEMENT_ERROR (demux, RESOURCE, NOT_FOUND,
("Could not cache the first fragments"), (NULL));
gst_hls_demux_stop (demux);
}
return;
}