现象:使用带大量CC字幕的ATSC码流进行播放,之后到Close Caption菜单随意进行设置,退出Close Caption切换Aspect Ratio,直至出现现象:HDMI和CVBS黑屏,但都有声音输出;或者设置Close Caption菜单之后退出切换Resolution,直至出现现象:HDMI有视频无声音,CVBS音视频都没有输出。
原因:设置Close Caption菜单属性之后,退出主菜单时对CC字幕的显示属性通过底层lib设置引起,不需要通过lib设置CC属性参数,只需要在上层设置即可:
static BOOLEAN _MApp_ZUI_ACT_HandleCCSettingMenuKey(VIRTUAL_KEY_CODE key)
{
switch (key)
{
......
case VK_EXIT:
case VK_MENU:
{
#if ATSC_CC_ENABLE
MApp_SetCCSetting(&inputCCSettings);
#if 0
stCCAttrSettings stTempAttr;
stTempAttr.enClosedCaptionOn = inputCCSettings.enClosedCaptionOn;
stTempAttr.enCCPotsion = inputCCSettings.enCCPotsion;
stTempAttr.enCCFontSize = inputCCSettings.enCCFontSize;
stTempAttr.enCCFontColor = inputCCSettings.enCCFontColor;
stTempAttr.enCCBGColor = inputCCSettings.enCCBGColor;
stTempAttr.enCCOpacity = inputCCSettings.enCCOpacity;
apiCC_SetAttr((stCCAttrSettings*)&stTempAttr);
#endif
#endif
......
}
default:
break;
}
return TRUE;
}
|