[vlc-devel] commit: check against libvlc_state_t states (Jean-Paul Saman )

git version control git at videolan.org
Tue Mar 17 16:07:53 CET 2009


vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Tue Mar 10 16:01:17 2009 +0100| [0392f8be2186d67ae86e9fdc1f809af34e623352] | committer: Jean-Paul Saman 

check against libvlc_state_t states

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

 src/control/media_player.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/control/media_player.c b/src/control/media_player.c
index 61ed914..6ae4b41 100644
--- a/src/control/media_player.c
+++ b/src/control/media_player.c
@@ -1192,7 +1192,7 @@ libvlc_state_t libvlc_media_player_get_state(
     var_Get( p_input_thread, "state", &val );
     state = vlc_to_libvlc_state(val.i_int);
 
-    if( state == PLAYING_S )
+    if( state == libvlc_Playing )
     {
         float caching;
         caching = var_GetFloat( p_input_thread, "cache" );




More information about the vlc-devel mailing list