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

Tim Müller tpm at kemper.freedesktop.org
Tue Feb 28 04:29:30 PST 2012


Module: gst-plugins-bad
Branch: master
Commit: 5b0d2ce2b27d186b5318ce74af7ec942c10173e3
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=5b0d2ce2b27d186b5318ce74af7ec942c10173e3

Author: Xavier Queralt <xqueralt at gmail.com>
Date:   Fri Feb 24 09:54:35 2012 +0100

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

https://bugzilla.gnome.org/show_bug.cgi?id=670963

---

 gst/hls/gsthlsdemux.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/gst/hls/gsthlsdemux.c b/gst/hls/gsthlsdemux.c
index d0f77a3..15f0bfa 100644
--- a/gst/hls/gsthlsdemux.c
+++ b/gst/hls/gsthlsdemux.c
@@ -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;



More information about the gstreamer-commits mailing list