diff options
Diffstat (limited to 'binding')
-rw-r--r-- | binding/afm-mediaplayer-binding.c | 4 |
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() |