Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Radio plugin: make partially compatible with new API
[src/app-framework-binder.git]
/
plugins
/
media
/
media-api.c
diff --git
a/plugins/media/media-api.c
b/plugins/media/media-api.c
index
308745d
..
4e064bc
100644
(file)
--- a/
plugins/media/media-api.c
+++ b/
plugins/media/media-api.c
@@
-33,7
+33,7
@@
STATIC mediaCtxHandleT* initMediaCtx () {
}
/* called when client session dies [e.g. client quits for more than 15mns] */
}
/* called when client session dies [e.g. client quits for more than 15mns] */
-STATIC void freeMedia (void *context
, void *handle
) {
+STATIC void freeMedia (void *context) {
free (context);
}
free (context);
}
@@
-103,6
+103,8
@@
STATIC json_object* selecting (AFB_request *request) { /* AFB_SESSION_CHECK */
jresp = json_object_new_object();
json_object_object_add (jresp, "index", json_object_new_string (value));
}
jresp = json_object_new_object();
json_object_object_add (jresp, "index", json_object_new_string (value));
}
+ else
+ jresp = NULL;
return jresp;
}
return jresp;
}