davemds pushed a commit to branch master.

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

commit d5c9aa0d4b38c22fab05d468958bea0abe448097
Author: davemds <[email protected]>
Date:   Sun Feb 16 13:50:20 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 145833f..8c4e049 100644
--- a/src/vlc/emotion_generic_vlc.c
+++ b/src/vlc/emotion_generic_vlc.c
@@ -636,6 +636,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
@@ -657,9 +661,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