[vlc-commits] m3u: make use of the special duration value INPUT_DURATION_INVALID

Steve Lhomme git at videolan.org
Sat Jul 7 10:17:05 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Sat Jul  7 10:13:45 2018 +0200| [a59653539d04b694f9fa4d0d93645503c35238f0] | committer: Steve Lhomme

m3u: make use of the special duration value INPUT_DURATION_INVALID

Instead of a hardcoded value

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a59653539d04b694f9fa4d0d93645503c35238f0
---

 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 36b99958db..e58bcb7121 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 = VLC_TICK_INVALID;
+            i_duration = INPUT_DURATION_INVALID;
 
             b_cleanup = false;
         }



More information about the vlc-commits mailing list