summaryrefslogtreecommitdiffstats
path: root/binding
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2017-10-16 13:06:04 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2017-10-16 13:11:27 -0700
commitf5dc724681b735f6645f58fc66d365ef4e9db4d2 (patch)
treee51b3b323c498852d0bdc67ceed19cc2935b1ed5 /binding
parent8c1e9f856b1b79f3afe5d5d5e2d0d46e159caeff (diff)
binding: mediaplayer: rename gstreamer event to metadata
Since gstreamer name doesn't make sense with the binding rename change it to metadata_event. Bug-AGL: SPEC-931 Change-Id: I94b8fc3de1aaae47ec8191ead06e4db994971025 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding')
-rw-r--r--binding/afm-mediaplayer-binding.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/binding/afm-mediaplayer-binding.c b/binding/afm-mediaplayer-binding.c
index d25e42c..cac0f23 100644
--- a/binding/afm-mediaplayer-binding.c
+++ b/binding/afm-mediaplayer-binding.c
@@ -31,7 +31,7 @@
#include <afb/afb-binding.h>
static struct afb_event playlist_event;
-static struct afb_event gstreamer_event;
+static struct afb_event metadata_event;
static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
static GList *playlist = NULL;
@@ -408,8 +408,8 @@ static void subscribe(struct afb_req request)
{
const char *value = afb_req_value(request, "value");
- if (!strcasecmp(value, "gstreamer")) {
- afb_req_subscribe(request, gstreamer_event);
+ if (!strcasecmp(value, "metadata")) {
+ afb_req_subscribe(request, metadata_event);
afb_req_success(request, NULL, NULL);
return;
} else if (!strcasecmp(value, "playlist")) {
@@ -425,8 +425,8 @@ static void unsubscribe(struct afb_req request)
{
const char *value = afb_req_value(request, "value");
- if (!strcasecmp(value, "gstreamer")) {
- afb_req_unsubscribe(request, gstreamer_event);
+ if (!strcasecmp(value, "metadata")) {
+ afb_req_unsubscribe(request, metadata_event);
afb_req_success(request, NULL, NULL);
return;
} else if (!strcasecmp(value, "playlist")) {
@@ -499,7 +499,7 @@ static gboolean position_event(CustomData *data)
pthread_mutex_unlock(&mutex);
- afb_event_push(gstreamer_event, jresp);
+ afb_event_push(metadata_event, jresp);
return TRUE;
}
@@ -633,7 +633,7 @@ static int init() {
return ret;
}
- gstreamer_event = afb_daemon_make_event("gstreamer");
+ metadata_event = afb_daemon_make_event("metadata");
playlist_event = afb_daemon_make_event("playlist");
return pthread_create(&thread_id, NULL, gstreamer_loop_thread, NULL);