[vlc-commits] vlc_input_item: add documentation on what the duration values stand for

Steve Lhomme git at videolan.org
Thu Jul 26 10:00:44 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jul 24 15:29:54 2018 +0200| [9f5bc6c6be2e15fec5166c60efaa4c4ffa42b7e8] | committer: Steve Lhomme

vlc_input_item: add documentation on what the duration values stand for

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

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

diff --git a/include/vlc_input_item.h b/include/vlc_input_item.h
index 219e7d268c..0347be2bfe 100644
--- a/include/vlc_input_item.h
+++ b/include/vlc_input_item.h
@@ -124,9 +124,9 @@ struct input_item_t
 
 #define INPUT_ITEM_URI_NOP "vlc://nop" /* dummy URI for node/directory items */
 
-#define INPUT_DURATION_INVALID   VLC_TICK_INVALID
-#define INPUT_DURATION_ZERO      0
-#define INPUT_DURATION_UNKNOWN   (-1)
+#define INPUT_DURATION_INVALID   VLC_TICK_INVALID /* an item with no duration, like a node/directory */
+#define INPUT_DURATION_ZERO      0     /* an item with a zero duration */
+#define INPUT_DURATION_UNKNOWN   (-1)  /* an item with no duration (live/continuous source) */
 
 enum input_item_net_type
 {



More information about the vlc-commits mailing list