]> git.sesse.net Git - vlc/commitdiff
test: Don't do the pause() test, this can't work.
authorPierre d'Herbemont <pdherbemont@free.fr>
Thu, 21 May 2009 06:12:17 +0000 (23:12 -0700)
committerPierre d'Herbemont <pdherbemont@free.fr>
Thu, 21 May 2009 06:12:17 +0000 (23:12 -0700)
Basically pause() might play(). This may need some revamping.

test/libvlc/media_player.c

index 2774fda14e9193ee9b9cb0272bdd78196362b945..a14a038825b0e806d425ede0aab524c454101abe 100644 (file)
@@ -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 ();