[vlc-devel] [PATCH 3/5] asx: use INPUT_UNKNOWN_DURATION for the unset value

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


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

diff --git a/modules/demux/playlist/asx.c b/modules/demux/playlist/asx.c
index 7e304388829..cd29c588db9 100644
--- a/modules/demux/playlist/asx.c
+++ b/modules/demux/playlist/asx.c
@@ -203,7 +203,7 @@ static void ProcessEntry( int *pi_n_entry, xml_reader_t *p_xml_reader,
 
     int i_options;
     vlc_tick_t i_start = 0;
-    vlc_tick_t i_duration = 0;
+    vlc_tick_t i_duration = INPUT_UNKNOWN_DURATION;
     char *ppsz_options[2];
 
     do
@@ -300,7 +300,7 @@ static void ProcessEntry( int *pi_n_entry, xml_reader_t *p_xml_reader,
                                   i_start / CLOCK_FREQ ) != -1)
                         i_options++;
                 }
-                if( i_duration)
+                if( i_duration != INPUT_UNKNOWN_DURATION )
                 {
                     if( asprintf( ppsz_options + i_options,
                                   ":stop-time=%"PRId64,
-- 
2.17.0



More information about the vlc-devel mailing list