davemds pushed a commit to branch emotion_generic_players-1.8.

http://git.enlightenment.org/core/emotion_generic_players.git/commit/?id=f5c24d73dd95fa47c16f5a87535a90a27f7509f4

commit f5c24d73dd95fa47c16f5a87535a90a27f7509f4
Author: davemds <[email protected]>
Date:   Sun Feb 16 14:07:21 2014 +0100

    Emotion VLC backend: fix pause/stop to work again.
    
    The EM_CMD_STOP command do not have any parameter so it must be
    handled in the first call of the pipe.
---
 src/vlc/emotion_generic_vlc.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/vlc/emotion_generic_vlc.c b/src/vlc/emotion_generic_vlc.c
index 48581e5..c69b25e 100644
--- a/src/vlc/emotion_generic_vlc.c
+++ b/src/vlc/emotion_generic_vlc.c
@@ -634,6 +634,10 @@ _remote_command(void *data, void *buffer, unsigned int 
nbyte)
               _file_close(app);
               app->last_order = EM_CMD_LAST;
               break;
+           case EM_CMD_STOP:
+              _stop(app);
+              app->last_order = EM_CMD_LAST;
+              break;
           }
      }
    else
@@ -655,9 +659,6 @@ _remote_command(void *data, void *buffer, unsigned int 
nbyte)
            case EM_CMD_PLAY:
               _play(app, *(float*) buffer);
               break;
-           case EM_CMD_STOP:
-              _stop(app);
-              break;
            case EM_CMD_POSITION_SET:
               _position_set(app, *(float*) buffer);
               break;

-- 


Reply via email to