summaryrefslogtreecommitdiffstats
path: root/plugins/media/media-rygel.c
diff options
context:
space:
mode:
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) {