[vlc-commits] m3u: reset the duration between items to indefinite
Steve Lhomme
git at videolan.org
Mon Jul 30 07:16:03 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jul 24 15:05:54 2018 +0200| [e6a85d59564ed2d01811822cba827fe9c0cd6aa7] | committer: Steve Lhomme
m3u: reset the duration between items to indefinite
This is how it's initialized before the loop, this assumes items in a m3u with no
duration are live streams.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e6a85d59564ed2d01811822cba827fe9c0cd6aa7
---
modules/demux/playlist/m3u.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/playlist/m3u.c b/modules/demux/playlist/m3u.c
index f949de072e..77232269e8 100644
--- a/modules/demux/playlist/m3u.c
+++ b/modules/demux/playlist/m3u.c
@@ -341,7 +341,7 @@ static int ReadDir( stream_t *p_demux, input_item_node_t *p_subitems )
FREENULL( psz_artist );
FREENULL( psz_album_art );
i_parsed_duration = 0;
- i_duration = INPUT_DURATION_INVALID;
+ i_duration = INPUT_DURATION_INDEFINITE;
b_cleanup = false;
}
More information about the vlc-commits
mailing list