[vlc-devel] commit: test_media_list_player: wait for playing to stop ( Rafaël Carré )
git version control
git at videolan.org
Mon Jan 18 09:52:33 CET 2010
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Mon Jan 18 09:20:12 2010 +0100| [af6a893aecb73f52f397560f7a7dcb0fe8587f7f] | committer: Rafaël Carré
test_media_list_player: wait for playing to stop
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=af6a893aecb73f52f397560f7a7dcb0fe8587f7f
---
test/libvlc/media_list_player.c | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/test/libvlc/media_list_player.c b/test/libvlc/media_list_player.c
index 870875f..4b2201a 100644
--- a/test/libvlc/media_list_player.c
+++ b/test/libvlc/media_list_player.c
@@ -154,6 +154,9 @@ static void test_media_list_player_items_queue(const char** argv, int argc)
libvlc_media_list_player_stop (mlp, &ex);
catch ();
+ while (libvlc_media_list_player_is_playing (mlp, &ex))
+ catch() ;
+
libvlc_media_list_player_release (mlp);
catch ();
@@ -221,6 +224,9 @@ static void test_media_list_player_previous(const char** argv, int argc)
libvlc_media_list_player_stop (mlp, &ex);
catch ();
+ while (libvlc_media_list_player_is_playing (mlp, &ex))
+ catch() ;
+
libvlc_media_list_player_previous (mlp, &ex);
catch ();
@@ -230,6 +236,9 @@ static void test_media_list_player_previous(const char** argv, int argc)
libvlc_media_list_player_stop (mlp, &ex);
catch ();
+ while (libvlc_media_list_player_is_playing (mlp, &ex))
+ catch() ;
+
libvlc_media_list_player_release (mlp);
catch ();
@@ -297,6 +306,9 @@ static void test_media_list_player_next(const char** argv, int argc)
libvlc_media_list_player_stop (mlp, &ex);
catch ();
+ while (libvlc_media_list_player_is_playing (mlp, &ex))
+ catch() ;
+
libvlc_media_list_player_next (mlp, &ex);
catch ();
@@ -306,6 +318,9 @@ static void test_media_list_player_next(const char** argv, int argc)
libvlc_media_list_player_stop (mlp, &ex);
catch ();
+ while (libvlc_media_list_player_is_playing (mlp, &ex))
+ catch() ;
+
libvlc_media_list_player_release (mlp);
catch ();
@@ -353,6 +368,9 @@ static void test_media_list_player_pause_stop(const char** argv, int argc)
libvlc_media_list_player_stop (mlp, &ex);
catch ();
+ while (libvlc_media_list_player_is_playing (mlp, &ex))
+ catch() ;
+
libvlc_media_release (md);
libvlc_media_list_player_release (mlp);
@@ -402,6 +420,9 @@ static void test_media_list_player_play_item_at_index(const char** argv, int arg
libvlc_media_list_player_stop (mlp, &ex);
catch ();
+ while (libvlc_media_list_player_is_playing (mlp, &ex))
+ catch() ;
+
libvlc_media_release (md);
catch ();
@@ -548,6 +569,9 @@ static void test_media_list_player_playback_options (const char** argv, int argc
libvlc_media_list_player_stop (mlp, &ex);
catch ();
+ while (libvlc_media_list_player_is_playing (mlp, &ex))
+ catch() ;
+
// Test looping playback mode
log ("Testing media player playback option - Loop\n");
libvlc_media_list_player_set_playback_mode(mlp, libvlc_playback_mode_loop, &ex);
@@ -562,6 +586,9 @@ static void test_media_list_player_playback_options (const char** argv, int argc
libvlc_media_list_player_stop (mlp, &ex);
catch ();
+ while (libvlc_media_list_player_is_playing (mlp, &ex))
+ catch() ;
+
// Test repeat playback mode
log ("Testing media player playback option - Repeat\n");
libvlc_media_list_player_set_playback_mode(mlp, libvlc_playback_mode_repeat, &ex);
@@ -576,6 +603,9 @@ static void test_media_list_player_playback_options (const char** argv, int argc
libvlc_media_list_player_stop (mlp, &ex);
catch ();
+ while (libvlc_media_list_player_is_playing (mlp, &ex))
+ catch() ;
+
libvlc_media_list_player_release (mlp);
catch ();
More information about the vlc-devel
mailing list