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

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


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

vlc_input_item: add a define for the known zero duration

VLC_TS_INVALID was used but in most cases the value is 0 on purpose

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

 include/vlc_input_item.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/vlc_input_item.h b/include/vlc_input_item.h
index 8e62877b1f..e0dc6e8533 100644
--- a/include/vlc_input_item.h
+++ b/include/vlc_input_item.h
@@ -108,6 +108,7 @@ struct input_item_t
 };
 
 #define INPUT_DURATION_INVALID   VLC_TICK_INVALID
+#define INPUT_DURATION_ZERO      0
 
 enum input_item_type_e
 {



More information about the vlc-commits mailing list