playback: manage the auto-pause in fffb [1/1]

PD#SWPL-161006

Problem:
1. pause in FB is not catched by wrapper
FB -> pause(reach end)
-> set speed(100)(pause not checked, due to race)
-> still pause

2. condition race
the extra logic in wrapper
should be locked with player inner logic.

Solution:
1. correct the mutex location,
make the pause state notified.
2. move the extra logic in set_playback_speed,
they should be inner logic, and should be locked.

Verify:
PB

Change-Id: Ib57f74772d380b56779330d1b0306409b65c3c01
Signed-off-by: Zhiqiang Han <zhiqiang.han@amlogic.com>
2 files changed
tree: 4751ead22a97fa7f82a39cff2d85b1717ebd576c
  1. include/
  2. src/
  3. test/
  4. Android.bp
  5. Android.mk
  6. Doxyfile
  7. LICENSE
  8. Makefile