summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2014-02-16 14:07:21 +0100
committerdavemds <dave@gurumeditation.it>2014-02-16 14:07:21 +0100
commitf5c24d73dd95fa47c16f5a87535a90a27f7509f4 (patch)
tree16a0a27ef43ee0fc4d95313b86705e4aec2048da
parent0e5e8fb49e2749cc99c880097d7a2eece2c628d2 (diff)
downloademotion_generic_players-f5c24d73dd95fa47c16f5a87535a90a27f7509f4.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.
-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 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;