[vlc-commits] vlc_input_item: add a define for the invalid duration

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


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Sat Jul  7 10:05:49 2018 +0200| [964671866036e61efdb61fa6e2f5797920f4a7e6] | committer: Steve Lhomme

vlc_input_item: add a define for the invalid duration

It's likely 0 that was intented

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

 include/vlc_input_item.h | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/include/vlc_input_item.h b/include/vlc_input_item.h
index c815c773c1..8e62877b1f 100644
--- a/include/vlc_input_item.h
+++ b/include/vlc_input_item.h
@@ -107,6 +107,8 @@ struct input_item_t
                                           preparsing.*/
 };
 
+#define INPUT_DURATION_INVALID   VLC_TICK_INVALID
+
 enum input_item_type_e
 {
     ITEM_TYPE_UNKNOWN,
@@ -335,10 +337,10 @@ VLC_API input_item_t * input_item_NewExt( const char *psz_uri,
                                           enum input_item_net_type i_net ) VLC_USED;
 
 #define input_item_New( psz_uri, psz_name ) \
-    input_item_NewExt( psz_uri, psz_name, VLC_TICK_INVALID, ITEM_TYPE_UNKNOWN, ITEM_NET_UNKNOWN )
+    input_item_NewExt( psz_uri, psz_name, INPUT_DURATION_INVALID, ITEM_TYPE_UNKNOWN, ITEM_NET_UNKNOWN )
 
 #define input_item_NewCard( psz_uri, psz_name ) \
-    input_item_NewExt( psz_uri, psz_name, VLC_TICK_INVALID, ITEM_TYPE_CARD, ITEM_LOCAL )
+    input_item_NewExt( psz_uri, psz_name, INPUT_DURATION_INVALID, ITEM_TYPE_CARD, ITEM_LOCAL )
 
 #define input_item_NewDisc( psz_uri, psz_name, i_duration ) \
     input_item_NewExt( psz_uri, psz_name, i_duration, ITEM_TYPE_DISC, ITEM_LOCAL )
@@ -347,7 +349,7 @@ VLC_API input_item_t * input_item_NewExt( const char *psz_uri,
     input_item_NewExt( psz_uri, psz_name, i_duration, ITEM_TYPE_STREAM, ITEM_NET )
 
 #define input_item_NewDirectory( psz_uri, psz_name, i_net ) \
-    input_item_NewExt( psz_uri, psz_name, VLC_TICK_INVALID, ITEM_TYPE_DIRECTORY, i_net )
+    input_item_NewExt( psz_uri, psz_name, INPUT_DURATION_INVALID, ITEM_TYPE_DIRECTORY, i_net )
 
 #define input_item_NewFile( psz_uri, psz_name, i_duration, i_net ) \
     input_item_NewExt( psz_uri, psz_name, i_duration, ITEM_TYPE_FILE, i_net )



More information about the vlc-commits mailing list