[vlc-devel] [PATCH 4/5] m3u: use INPUT_UNKNOWN_DURATION for the unset value

Steve Lhomme robux4 at ycbcr.xyz
Sat Jun 23 09:26:16 CEST 2018


---
 modules/demux/playlist/m3u.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/playlist/m3u.c b/modules/demux/playlist/m3u.c
index 518f8ebe359..cc1b3e23060 100644
--- a/modules/demux/playlist/m3u.c
+++ b/modules/demux/playlist/m3u.c
@@ -218,7 +218,7 @@ static int ReadDir( stream_t *p_demux, input_item_node_t *p_subitems )
     char       *psz_artist = NULL;
     char       *psz_album_art = NULL;
     int        i_parsed_duration = 0;
-    vlc_tick_t i_duration = -1;
+    vlc_tick_t i_duration = INPUT_UNKNOWN_DURATION;
     const char**ppsz_options = NULL;
     char *    (*pf_dup) (const char *) = p_demux->p_sys;
     int        i_options = 0;
@@ -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 = VLC_TS_INVALID;
+            i_duration = INPUT_UNKNOWN_DURATION;
 
             b_cleanup = false;
         }
-- 
2.17.0



More information about the vlc-devel mailing list