[vlc-devel] commit: test: Don't do the pause() test, this can't work. (Pierre d' Herbemont )

git version control git at videolan.org
Thu May 21 08:13:21 CEST 2009


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Wed May 20 23:12:17 2009 -0700| [1c53f2aa61c9a32b1feec031cda2534ecc592c19] | committer: Pierre d'Herbemont 

test: Don't do the pause() test, this can't work.

Basically pause() might play(). This may need some revamping.

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

 test/libvlc/media_player.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/test/libvlc/media_player.c b/test/libvlc/media_player.c
index 2774fda..a14a038 100644
--- a/test/libvlc/media_player.c
+++ b/test/libvlc/media_player.c
@@ -105,6 +105,9 @@ static void test_media_player_pause_stop(const char** argv, int argc)
 
     assert( state == libvlc_Playing || state == libvlc_Ended );
 
+#if 0
+    /* This can't work because under some condition (short file, this is the case) this will be
+     * equivalent to a play() */
     libvlc_media_player_pause (mi, &ex);
     catch();
 
@@ -120,7 +123,8 @@ static void test_media_player_pause_stop(const char** argv, int argc)
 
     assert( state == libvlc_Paused || state == libvlc_Ended );
     catch();
-
+#endif
+    
     libvlc_media_player_stop (mi, &ex);
     catch ();
 




More information about the vlc-devel mailing list