[vlc-commits] test:libvlc: explicitly convert milliseconds into vlc_tick_t

Steve Lhomme git at videolan.org
Fri Jul 6 16:07:47 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon May  7 08:44:15 2018 +0200| [c7ba6127bef5e48f328db9c99612b11f9bebc155] | committer: Steve Lhomme

test:libvlc: explicitly convert milliseconds into vlc_tick_t

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

 test/libvlc/media.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/libvlc/media.c b/test/libvlc/media.c
index e69f0d7c64..4de30c7187 100644
--- a/test/libvlc/media.c
+++ b/test/libvlc/media.c
@@ -139,7 +139,7 @@ static void input_item_preparse_timeout( const vlc_event_t *p_event,
 static void test_input_metadata_timeout(libvlc_instance_t *vlc, int timeout,
                                         int wait_and_cancel)
 {
-    log ("test_input_metadata_timeout: timeout: %d, wait_and_cancel: %d\n",
+    log ("test_input_metadata_timeout: timeout: %d, wait_and_cancel: %d ms\n",
          timeout, wait_and_cancel);
 
     int i_ret, p_pipe[2];
@@ -163,7 +163,7 @@ static void test_input_metadata_timeout(libvlc_instance_t *vlc, int timeout,
 
     if (wait_and_cancel > 0)
     {
-        vlc_tick_sleep(wait_and_cancel * 1000);
+        vlc_tick_sleep( VLC_TICK_FROM_MS(wait_and_cancel) );
         libvlc_MetadataCancel(vlc->p_libvlc_int, vlc);
 
     }



More information about the vlc-commits mailing list