[vlc-commits] modules: make use of the special duration value INPUT_DURATION_ZERO

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


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jul  6 14:27:36 2018 +0200| [4d7b5734372339615c762197d51e66100409a079] | committer: Steve Lhomme

modules: make use of the special duration value INPUT_DURATION_ZERO

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

 modules/demux/playlist/asx.c   | 2 +-
 modules/demux/playlist/sgimb.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/playlist/asx.c b/modules/demux/playlist/asx.c
index 6e0bec1987..db5bb44972 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_DURATION_ZERO;
     char *ppsz_options[2];
 
     do
diff --git a/modules/demux/playlist/sgimb.c b/modules/demux/playlist/sgimb.c
index bb85bbdcb2..e1a772a1a9 100644
--- a/modules/demux/playlist/sgimb.c
+++ b/modules/demux/playlist/sgimb.c
@@ -171,7 +171,7 @@ int Import_SGIMB( vlc_object_t * p_this )
             p_sys->psz_mcast_ip = NULL;
             p_sys->i_mcast_port = 0;
             p_sys->i_packet_size = 0;
-            p_sys->i_duration = 0;
+            p_sys->i_duration = INPUT_DURATION_ZERO;
             p_sys->i_port = 0;
             p_sys->i_sid = 0;
             p_sys->b_rtsp_kasenna = false;



More information about the vlc-commits mailing list