[vlc-devel] commit: test: Use vlc's msleep. Only portable and working implementation we have. (Pierre d'Herbemont )

git version control git at videolan.org
Fri Jun 5 09:51:16 CEST 2009


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Fri Jun  5 00:50:42 2009 -0700| [cb2a5b49fdbcd7951dbb9b1a8fb5d5adb78af160] | committer: Pierre d'Herbemont 

test: Use vlc's msleep. Only portable and working implementation we have.

Pointed by Remi.

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

 test/libvlc/media_list_player.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/test/libvlc/media_list_player.c b/test/libvlc/media_list_player.c
index 65aa65b..56fbb43 100644
--- a/test/libvlc/media_list_player.c
+++ b/test/libvlc/media_list_player.c
@@ -23,6 +23,10 @@
 
 #include "test.h"
 
+ // For msleep
+#include <vlc_common.h>
+#include <vlc_mtime.h>
+
 static void media_list_add_file_path(libvlc_instance_t *vlc, libvlc_media_list_t *ml, const char * file_path)
 {
     libvlc_media_t *md = libvlc_media_new (vlc, file_path, &ex);
@@ -73,7 +77,7 @@ static void test_media_list_player_next(const char** argv, int argc)
 
     libvlc_media_release (md);
 
-    usleep(100000);
+    msleep(100000);
     
     libvlc_media_list_player_next (mlp, &ex);
     catch ();
@@ -81,7 +85,7 @@ static void test_media_list_player_next(const char** argv, int argc)
     libvlc_media_list_player_pause (mlp, &ex);
     catch();
 
-    usleep(100000);
+    msleep(100000);
     
     libvlc_media_list_player_next (mlp, &ex);
     catch ();
@@ -89,7 +93,7 @@ static void test_media_list_player_next(const char** argv, int argc)
     libvlc_media_list_player_stop (mlp, &ex);
     catch ();
 
-    usleep(100000);
+    msleep(100000);
     
     libvlc_media_list_player_next (mlp, &ex);
     catch ();




More information about the vlc-devel mailing list