aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/media/media-rygel.c
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2016-01-26 16:36:04 +0100
committerFulup Ar Foll <fulup@iot.bzh>2016-01-26 16:36:04 +0100
commitc1dda27fbbbbbf14aabe5bc8b4cb2a70abfd09f0 (patch)
tree8d6b0240218ad6994cf529781ea814aeac21fb19 /plugins/media/media-rygel.c
parentd5836c2c45c63cb627d1a72591e1f47f8e229aad (diff)
parentae8e72788e8f2db33efea6045e5ee835266b10eb (diff)
Merge branch 'master' of github.com:iotbzh/afb-daemon
Diffstat (limited to 'plugins/media/media-rygel.c')
-rw-r--r--plugins/media/media-rygel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/media/media-rygel.c b/plugins/media/media-rygel.c
index be8cb96d..32969b2d 100644
--- a/plugins/media/media-rygel.c
+++ b/plugins/media/media-rygel.c
@@ -88,7 +88,7 @@ PUBLIC void _rygel_free (mediaCtxHandleT *ctx) {
dev_ctx_c->content_res = NULL;
}
-PUBLIC char* _rygel_list (mediaCtxHandleT *ctx) {
+PUBLIC json_object* _rygel_list (mediaCtxHandleT *ctx) {
dev_ctx_T *dev_ctx_c = (dev_ctx_T*)ctx->media_server;
json_object *json_o, *json_a;
@@ -136,7 +136,7 @@ PUBLIC char* _rygel_list (mediaCtxHandleT *ctx) {
json_object_object_add (json_o, "list", json_a);
- return (char*) json_object_to_json_string (json_o);
+ return json_o;
}
PUBLIC unsigned char _rygel_select (mediaCtxHandleT *ctx, unsigned int index) {