pvr: mute without unmute [1/1]
PD#SWPL-188388
Problem:
mute without unmute
Solution:
mute without unmute
Verify:
PB
Change-Id: Ibe0c22cb5920224575c36494ff48c8bcead3732b
Signed-off-by: Zhiqiang Han <zhiqiang.han@amlogic.com>
diff --git a/src/dvr_playback.c b/src/dvr_playback.c
index 4eede63..6946c44 100644
--- a/src/dvr_playback.c
+++ b/src/dvr_playback.c
@@ -2164,7 +2164,8 @@
}
if (type == 1 && VALID_PID(set_pid.pid) && player->cmd.state == DVR_PLAYBACK_STATE_START
- && player->play_flag&DVR_PLAYBACK_STARTED_PAUSEDLIVE) {
+ && player->play_flag&DVR_PLAYBACK_STARTED_PAUSEDLIVE
+ && player->state == DVR_PLAYBACK_STATE_PAUSE) {
// Here we mute audio no matter it is displayable or not in starting phase of a playback.
// Audio will be unmuted shortly on receiving first frame event.
AmTsPlayer_setAudioMute(player->handle,1,1);