unregisterplay should be invoked by sync.
unregisterplay doesn't need to be done after invoked.
Change-Id: I24c228ecfada5226ea01fecc9c88a6cc548648f1
Signed-off-by: Wu Zheng <wu.zheng@intel.com>
return;
}
- g_dbus_proxy_call(adapter->media_proxy,
+ g_dbus_proxy_call_sync(adapter->media_proxy,
"UnregisterPlayer",
g_variant_new("(o)", BT_MEDIA_OBJECT_PATH),
- 0, -1, NULL,
- handle_media_proxy_cb,
- adapter);
+ 0, -1, NULL, NULL);
if (adapter->avrcp_registration_id)
bt_unregister_avrcp_property(adapter,