diff options
author | Emanuele Aina <emanuele.aina@collabora.com> | 2013-08-07 11:26:45 +0200 |
---|---|---|
committer | Emanuele Aina <emanuele.aina@collabora.com> | 2013-08-07 13:08:49 +0200 |
commit | 231b018db5e55718eb3051e389ced7a15200dc03 (patch) | |
tree | b49dc7a46764926d33b1f7d94d9837b4e21fe56e | |
parent | 4df5c4991c55750c3a6c824b320586206691ee9b (diff) | |
download | dleyna-renderer-231b018db5e55718eb3051e389ced7a15200dc03.tar.gz |
[Player] Fix OpenUri() after changes in commit bea7776
Commit bea7776 introduced a generic mechanism in dlr_task_open_uri_t
where callers are supposed to set the desired operation and URI type in
the stask data struct, but OpenUri() was not updated to do so.
Calls to OpenUri() would then result in calls to
gupnp_service_proxy_begin_action() with a NULL operation in
dlr_device_open_uri(), which would not trigger the callback at all and
ultimately result in the original DBus call to timeout.
Signed-off-by: Emanuele Aina <emanuele.aina@collabora.com>
-rw-r--r-- | libdleyna/renderer/task.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libdleyna/renderer/task.c b/libdleyna/renderer/task.c index f9d4100..233488d 100644 --- a/libdleyna/renderer/task.c +++ b/libdleyna/renderer/task.c @@ -301,7 +301,9 @@ dlr_task_t *dlr_task_open_uri_new(dleyna_connector_msg_id_t invocation, g_variant_get(parameters, "(s)", &task->ut.open_uri.uri); g_strstrip(task->ut.open_uri.uri); - task->ut.open_uri.metadata = NULL; + task->ut.open_uri.operation = g_strdup("SetAVTransportURI"); + task->ut.open_uri.uri_type = g_strdup("CurrentURI"); + task->ut.open_uri.metadata_type = g_strdup("CurrentURIMetaData"); return task; } |