[vlc-devel] [PATCH 05/11] vlc_input_item: by default items have a duration of 0 and not unknown

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


They will have a valid duration later, unknown is meant to stay that way.
---
 include/vlc_input_item.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/vlc_input_item.h b/include/vlc_input_item.h
index a8ca0ec300..eae1bd38ab 100644
--- a/include/vlc_input_item.h
+++ b/include/vlc_input_item.h
@@ -339,7 +339,7 @@ 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, INPUT_DURATION_INVALID, ITEM_TYPE_UNKNOWN, ITEM_NET_UNKNOWN )
+    input_item_NewExt( psz_uri, psz_name, INPUT_DURATION_ZERO, ITEM_TYPE_UNKNOWN, ITEM_NET_UNKNOWN )
 
 #define input_item_NewCard( psz_uri, psz_name ) \
     input_item_NewExt( psz_uri, psz_name, INPUT_DURATION_UNKNOWN, ITEM_TYPE_CARD, ITEM_LOCAL )
-- 
2.17.0



More information about the vlc-devel mailing list