aboutsummaryrefslogtreecommitdiffstats
path: root/binding/afm-mediaplayer-binding.c
diff options
context:
space:
mode:
Diffstat (limited to 'binding/afm-mediaplayer-binding.c')
-rw-r--r--binding/afm-mediaplayer-binding.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/binding/afm-mediaplayer-binding.c b/binding/afm-mediaplayer-binding.c
index 805a6bb..e95b4ba 100644
--- a/binding/afm-mediaplayer-binding.c
+++ b/binding/afm-mediaplayer-binding.c
@@ -387,6 +387,9 @@ static void controls(struct afb_req request)
data.loop = !strcasecmp(state, "true") ? TRUE : FALSE;
break;
}
+ case STOP_CMD:
+ gst_element_set_state(data.playbin, GST_STATE_NULL);
+ break;
default:
afb_req_fail(request, "failed", "unknown command");
pthread_mutex_unlock(&mutex);