diff --git a/ext/hls/gsthlssink.c b/ext/hls/gsthlssink.c index bbec243119..318455fea5 100644 --- a/ext/hls/gsthlssink.c +++ b/ext/hls/gsthlssink.c @@ -161,8 +161,9 @@ gst_hls_sink_class_init (GstHlsSinkClass * klass) g_object_class_install_property (gobject_class, PROP_PLAYLIST_LENGTH, g_param_spec_uint ("playlist-length", "Playlist length", "Length of HLS playlist. To allow players to conform to section 6.3.3 " - "of the HLS specification, this should be at least 3.", - 1, G_MAXUINT, DEFAULT_PLAYLIST_LENGTH, + "of the HLS specification, this should be at least 3. If set to 0, " + "the playlist will be infinite.", + 0, G_MAXUINT, DEFAULT_PLAYLIST_LENGTH, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); } diff --git a/ext/hls/gstm3u8playlist.c b/ext/hls/gstm3u8playlist.c index b7dabb9837..f2c556bf5e 100644 --- a/ext/hls/gstm3u8playlist.c +++ b/ext/hls/gstm3u8playlist.c @@ -129,7 +129,7 @@ gst_m3u8_playlist_add_entry (GstM3U8Playlist * playlist, entry = gst_m3u8_entry_new (url, title, duration, discontinuous); - if (playlist->window_size != -1) { + if (playlist->window_size > 0) { /* Delete old entries from the playlist */ while (playlist->entries->length >= playlist->window_size) { GstM3U8Entry *old_entry;