summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2014-02-16 13:50:20 +0100
committerdavemds <dave@gurumeditation.it>2014-02-16 13:50:20 +0100
commitd5c9aa0d4b38c22fab05d468958bea0abe448097 (patch)
tree3a7d6b469614879eebdc1ad2045536d427f35518 /src
parent7ad4a2ca321c704f48af64dab439a9907c4b65e2 (diff)
downloademotion_generic_players-d5c9aa0d4b38c22fab05d468958bea0abe448097.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/vlc/emotion_generic_vlc.c7
1 files 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;