summaryrefslogtreecommitdiffstats
path: root/binding/afm-mediaplayer-binding.c
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2018-10-18 17:16:29 +0200
committerMatt Ranostay <matt.ranostay@konsulko.com>2018-10-18 18:01:30 +0200
commit76aaafbf636e952b5d8ac1b8a838bc343887b0fa (patch)
tree38a6c4211f2a8cb7a50a48a08419df64f19dff73 /binding/afm-mediaplayer-binding.c
parentfe23ca1a7b011a8ba39e6d2ba1d2cbd80bbd1262 (diff)
binding: mediaplayer: quiet some compile warnings
Change-Id: I48d54c05bfb8f74f280ac914f13aa30ce79fad00 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding/afm-mediaplayer-binding.c')
-rw-r--r--binding/afm-mediaplayer-binding.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/binding/afm-mediaplayer-binding.c b/binding/afm-mediaplayer-binding.c
index 127d162..e82f7d6 100644
--- a/binding/afm-mediaplayer-binding.c
+++ b/binding/afm-mediaplayer-binding.c
@@ -564,7 +564,7 @@ static json_object *populate_json_metadata(void)
json_object_new_int64(data.position / GST_MSECOND));
json_object_object_add(jresp, "volume",
- json_object_new_int(data.volume));
+ json_object_new_int64(data.volume));
jresp = populate_json_metadata_image(jresp);
@@ -873,6 +873,8 @@ static void onevent(const char *event, struct json_object *object)
void *gstreamer_loop_thread(void *ptr)
{
g_main_loop_run(g_main_loop_new(NULL, FALSE));
+
+ return NULL;
}
static int init()