[vlc-devel] [v4 06/10] vlc_input_item: remove INPUT_DURATION_ZERO

Steve Lhomme robux4 at ycbcr.xyz
Fri Jul 27 12:49:06 CEST 2018


If a duration is explicitly 0 (an item that won't play any content) then it can
be set to 0 directly.
---
 include/vlc_input_item.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/include/vlc_input_item.h b/include/vlc_input_item.h
index f5c9384845..4ab47725a9 100644
--- a/include/vlc_input_item.h
+++ b/include/vlc_input_item.h
@@ -127,7 +127,6 @@ struct input_item_t
 /* placeholder duration for items with no known duration at time of creation
  * it may remain the duration for items like a node/directory */
 #define INPUT_DURATION_UNSET      VLC_TICK_INVALID
-#define INPUT_DURATION_ZERO      0     /* an item with a zero duration */
 #define INPUT_DURATION_INDEFINITE (-1) /* item with a known indefinite duration (live/continuous source) */
 
 enum input_item_net_type
-- 
2.17.0



More information about the vlc-devel mailing list