hlsdemux: don't fail for playlists smaller than fragments-cache

https://bugzilla.gnome.org/show_bug.cgi?id=670963
This commit is contained in:
Xavier Queralt 2012-02-24 09:54:35 +01:00 committed by Tim-Philipp Müller
parent 5c2e6dc512
commit 5b0d2ce2b2

View file

@ -1067,6 +1067,8 @@ gst_hls_demux_cache_fragments (GstHLSDemux * demux)
gst_m3u8_client_get_target_duration (demux->client)
/ GST_SECOND * G_USEC_PER_SEC);
if (!gst_hls_demux_get_next_fragment (demux)) {
if (demux->end_of_playlist)
break;
if (!demux->cancelled)
GST_ERROR_OBJECT (demux, "Error caching the first fragments");
return FALSE;