X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=plugins%2Fmedia%2Fmedia-rygel.c;h=32969b2d1e572461874e52bcea2fb86e522fc98d;hb=3259015486ecc8e246b1b69b36235d24e9d9c2ea;hp=be8cb96d635850a61bb81e5dfedd198d2ec8a2a5;hpb=d809e9b8fc03a0a08060034c6ddbd4b4c4176399;p=src%2Fapp-framework-binder.git 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) {