[Multimedia] Fixed a deadlock issue of Player.SetPlayPositionAsync. 50/152650/1
authorcoderhyme <jhyo.kim@samsung.com>
Tue, 26 Sep 2017 22:31:44 +0000 (07:31 +0900)
committercoderhyme <jhyo.kim@samsung.com>
Tue, 26 Sep 2017 22:31:44 +0000 (07:31 +0900)
commit1943ff7c94a3352e7890dcaf24634b580f61bdf2
treece2b2211fc77c5539b3a07e4d94e5d19d106b63c
parentf968eb196432ba4f398104733e086d72d2d50fce
[Multimedia] Fixed a deadlock issue of Player.SetPlayPositionAsync.

It occurs when the continuation of task is syncrhonous, which is not always.

The callback in native holds a mutex, if user code tries to call SetPlayPositionAsync right after awaiting SetPlayPositionAsync. It could be blocked, the mutex is still locked.

Change-Id: Ia968ab8d6e01401d3e5ee6551ebf8ae62ac99ea1
Signed-off-by: coderhyme <jhyo.kim@samsung.com>
src/Tizen.Multimedia.MediaPlayer/Player/Player.cs