summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Guiraud <christophe.guiraud@intel.com>2013-09-10 17:46:21 +0200
committerChristophe Guiraud <christophe.guiraud@intel.com>2013-09-16 09:57:43 +0200
commit59837824fefdf9d1677f4c632c1cf35ddba2db23 (patch)
tree29950020038b2e1288047e9b222440ef63e38742
parent47fa9521e80b32877a41f5945c2357d80c557b2f (diff)
downloaddleyna-renderer-59837824fefdf9d1677f4c632c1cf35ddba2db23.tar.gz
[Device] Fix dlr_device_set_position implementation
dlr_device_set_position is incorrectly implemented. now we use the REL_TIME unit for Time based Seeking instead of ABS_TIME unit and the X_DLNA_REL_BYTE unit for Byte Seeking instead of ABS_COUNT unit. Partial fix for issue: https://github.com/01org/dleyna-renderer/issues/115 Signed-off-by: Christophe Guiraud <christophe.guiraud@intel.com>
-rw-r--r--libdleyna/renderer/device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdleyna/renderer/device.c b/libdleyna/renderer/device.c
index d5aa82c..7dc6eb2 100644
--- a/libdleyna/renderer/device.c
+++ b/libdleyna/renderer/device.c
@@ -2898,9 +2898,9 @@ void dlr_device_set_position(dlr_device_t *device, dlr_task_t *task,
dlr_upnp_task_complete_t cb)
{
if (task->type == DLR_TASK_SET_POSITION)
- prv_device_set_position(device, task, "ABS_TIME", cb);
+ prv_device_set_position(device, task, "REL_TIME", cb);
else
- prv_device_set_position(device, task, "ABS_COUNT", cb);
+ prv_device_set_position(device, task, "X_DLNA_REL_BYTE", cb);
}
void dlr_device_goto_track(dlr_device_t *device, dlr_task_t *task,