[vlc-devel] [v3 3/9] m3u: reset the duration between items to INPUT_DURATION_UNKNOWN

Steve Lhomme robux4 at ycbcr.xyz
Thu Jul 26 10:03:56 CEST 2018


This is how it's initialized before the loop, this assumes items in a m3u with no
duration are live streams
---
 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 01c3afcd52..3237938894 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_NONE;
+            i_duration = INPUT_DURATION_UNKNOWN;
 
             b_cleanup = false;
         }
-- 
2.17.0



More information about the vlc-devel mailing list