diff --git a/hal_av_pipeline.c b/hal_av_pipeline.c old mode 100644 new mode 100755 index 93df252..d3c89a8 --- a/hal_av_pipeline.c +++ b/hal_av_pipeline.c @@ -344,17 +344,14 @@ int AVP_Stop(AVP_HANDLE player) { ALOGD("BTF|%s|%d|IN| player=%x setStreamMute\n", __FUNCTION__,__LINE__, player); AVP_SetAudioMute(player, TRUE); - HRESULT ret; - amp_log(socPlayerInfo->pip ? 1:0, "AMP_VOUT_SetLastFrameMode, socPlayerInfo->amp_vout in" ); - AMP_RPC(ret, AMP_VOUT_SetLastFrameMode, socPlayerInfo->amp_vout, socPlayerInfo->playerConfig.keep_last_frame ? AMP_VOUT_KEEPLASTFRAME:0); - assert(ret == SUCCESS); + HRESULT ret; - amp_zapping_mgr_stop_service(player); - - if( !socPlayerInfo->playerConfig.keep_last_frame ) { - AMP_RPC(ret, AMP_DISP_Push_BuildInFrame, socPlayerInfo->amp_disp, socPlayerInfo->pip ? 1:0, 0); - } + if( !socPlayerInfo->playerConfig.keep_last_frame ) { + AMP_RPC(ret, AMP_DISP_Push_BuildInFrame, socPlayerInfo->amp_disp, socPlayerInfo->pip ? 1:0, 0); + } + amp_zapping_mgr_stop_service(player); + #ifdef AMP_LOG_WRITE_FILE if(logFp[socPlayerInfo->pip ? 1:0] != NULL) fclose(logFp[socPlayerInfo->pip ? 1:0]);