diff options
Diffstat (limited to 'binding/afm-mediaplayer-binding.c')
-rw-r--r-- | binding/afm-mediaplayer-binding.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/binding/afm-mediaplayer-binding.c b/binding/afm-mediaplayer-binding.c index 62ccb5e..4ba4e9e 100644 --- a/binding/afm-mediaplayer-binding.c +++ b/binding/afm-mediaplayer-binding.c @@ -283,8 +283,8 @@ static int seek_track(int cmd) if (ret < 0) return -EINVAL; - if (data.playing) - gst_element_set_state(data.playbin, GST_STATE_PLAYING); + data.playing = TRUE; + gst_element_set_state(data.playbin, GST_STATE_PLAYING); current_track = item; @@ -357,6 +357,7 @@ static void controls(struct afb_req request) list = find_media_index(playlist, idx); if (list != NULL) { struct playlist_item *item = list->data; + data.playing = TRUE; set_media_uri(item); current_track = list; } else { |