[MM] Segmentation fault on calling CAPI APIs during destruction
authorsangdeug.kim <sangdeug.kim@samsung.com>
Fri, 11 Sep 2015 10:54:39 +0000 (19:54 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 07:55:23 +0000 (07:55 +0000)
commite63263de91abcf95d374d949c68e529e3850e36d
tree2b917868a8cfb26dbc76f12d57a1ec8083f3eddc
parent29210db2576238ad8841b1be538242e3092c54f1
[MM] Segmentation fault on calling CAPI APIs during destruction

Set |player_| as 0 to prevent using invalid handler.

|PlayerPrepared| callback which is set in |player_prepare_async| is called
after calling |Destroy| but it's invalid call path.
To unset remained callbacks, calling the |player_unprepare| in |Destroy|.
|player_unprepare| unset the callback which is set from |player_prepare_async|
and |player_set_position| api.

original M42 patches:
http://165.213.202.130/gerrit/#/c/87061/
http://165.213.202.130/gerrit/#/c/87220/

Bug: http://168.219.209.56/jira/browse/TSAM-379

Reviewed by: sns.park

Change-Id: I37cb9d4955acb12b0c40c5fa5d5ff12cc199d818
Signed-off-by: sangdeug.kim <sangdeug.kim@samsung.com>
tizen_src/chromium_impl/media/base/tizen/media_player_bridge_capi.cc [changed mode: 0644->0755]