[vlc-devel] [PATCH 11/11] asx: reset the item duration for each loop iteration

Steve Lhomme robux4 at ycbcr.xyz
Tue Jul 24 15:52:31 CEST 2018


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

diff --git a/modules/demux/playlist/asx.c b/modules/demux/playlist/asx.c
index db5bb44972..4ea05fed3f 100644
--- a/modules/demux/playlist/asx.c
+++ b/modules/demux/playlist/asx.c
@@ -203,11 +203,12 @@ 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 = INPUT_DURATION_ZERO;
+    vlc_tick_t i_duration;
     char *ppsz_options[2];
 
     do
     {
+        i_duration = INPUT_DURATION_ZERO;
         i_type = xml_ReaderNextNode( p_xml_reader, &psz_node );
 
         if( i_type == XML_READER_ERROR || i_type == XML_READER_NONE )
-- 
2.17.0



More information about the vlc-devel mailing list