[vlc-devel] [PATCH 9/9] vlc_input_item: init item to an unknown value by default instead of 0
Steve Lhomme
robux4 at ycbcr.xyz
Fri Jul 6 15:01:35 CEST 2018
The value is not set, so don't pretend that it is. An item might be checked specifically
if its duration value has been set or not but in this generic case it's not.
---
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 26458b3f54..90456c93de 100644
--- a/include/vlc_input_item.h
+++ b/include/vlc_input_item.h
@@ -338,7 +338,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_ZERO, ITEM_TYPE_UNKNOWN, ITEM_NET_UNKNOWN )
+ input_item_NewExt( psz_uri, psz_name, INPUT_DURATION_UNKNOWN, ITEM_TYPE_UNKNOWN, ITEM_NET_UNKNOWN )
#define input_item_NewCard( psz_uri, psz_name ) \
input_item_NewExt( psz_uri, psz_name, INPUT_DURATION_ZERO, ITEM_TYPE_CARD, ITEM_LOCAL )
--
2.17.0
More information about the vlc-devel
mailing list