aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/media/media-rygel.c
diff options
context:
space:
mode:
authorManuel Bachmann <manuel.bachmann@iot.bzh>2016-01-26 15:32:37 +0100
committerManuel Bachmann <manuel.bachmann@iot.bzh>2016-01-26 15:32:37 +0100
commitae8e72788e8f2db33efea6045e5ee835266b10eb (patch)
tree7f2010696a61bed78c74b292996c1ec95b3ff249 /plugins/media/media-rygel.c
parentf1a75365067fb89dd293aa2c8e003c3b041a3c9a (diff)
Fix getPostFile() upload function, return bare JSON in list
getPostFile() does not fail anymore when creating a new folder (return value was incorrect). Media Plugin list API now directly returns JSON, with track list array indexed as "list". Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
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) {