summaryrefslogtreecommitdiff
path: root/ext/hls/gstm3u8playlist.c
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2015-02-17 10:04:30 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2015-02-17 11:12:42 -0300
commit00bdac51a30e35d9c77d8d9d0d915f282771036f (patch)
treea72649a98b1b5d5d97ca307ffd131fb62df13f22 /ext/hls/gstm3u8playlist.c
parent6ec5904d461104972c63536de0c60cfc65b61b53 (diff)
downloadgstreamer-plugins-bad-00bdac51a30e35d9c77d8d9d0d915f282771036f.tar.gz
hlssink: allow creation of 'infinite' playlist
Allow the playlist-length to accept '0' as a value, indicating that no segment should be removed from the playlist. This allows generating playlists to be used as VOD when complete.
Diffstat (limited to 'ext/hls/gstm3u8playlist.c')
-rw-r--r--ext/hls/gstm3u8playlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/hls/gstm3u8playlist.c b/ext/hls/gstm3u8playlist.c
index b7dabb983..f2c556bf5 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;