[vlc-commits] libvlc: make use of the special duration value INPUT_DURATION_ZERO

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


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jul  6 13:28:58 2018 +0200| [cdc784b2e9d8db6120f4df0bc65a0593de6b3b7a] | committer: Steve Lhomme

libvlc: make use of the special duration value INPUT_DURATION_ZERO

Instead of a hardcoded value

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

 test/libvlc/media.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/libvlc/media.c b/test/libvlc/media.c
index 4de30c7187..dd6d10c2ac 100644
--- a/test/libvlc/media.c
+++ b/test/libvlc/media.c
@@ -148,7 +148,7 @@ static void test_input_metadata_timeout(libvlc_instance_t *vlc, int timeout,
 
     char psz_fd_uri[strlen("fd://") + 11];
     sprintf(psz_fd_uri, "fd://%u", (unsigned) p_pipe[1]);
-    input_item_t *p_item = input_item_NewFile(psz_fd_uri, "test timeout", 0,
+    input_item_t *p_item = input_item_NewFile(psz_fd_uri, "test timeout", INPUT_DURATION_ZERO,
                                               ITEM_LOCAL);
     assert(p_item != NULL);
 



More information about the vlc-commits mailing list