Change the order of the workflow when update server playback info 43/197443/3 accepted/tizen/unified/20190114.060153 submit/tizen/20190113.231604
authorhj kim <backto.kim@samsung.com>
Fri, 11 Jan 2019 07:29:55 +0000 (16:29 +0900)
committerhj kim <backto.kim@samsung.com>
Fri, 11 Jan 2019 07:50:48 +0000 (16:50 +0900)
commitdc281b25100e919ffe2b95a7c429223c42b384e2
treefcda3bcd8dcaa7d425da70ed7306530f6636fa68
parent4dfaf82c4914ea871e819200b4972608cd930690
Change the order of the workflow when update server playback info

when playback state is "PLAYING", latest server should be updated.
but previous coude send dbus msg of updating playback info to the client first and then update latest server info.
However, some client apps could expect to update the latest server info when they receive a dbus msg of "PLAYING".
but when clients check it right after getting the dbus msg, db didn't updated yet.
So change order to do update latest server info first before send dbus msg to the client.

Change-Id: I2d659287e1f8e5d758e13ea69f481701a8f287e3
src/media_controller_db.c
src/media_controller_server.c [changed mode: 0644->0755]