Skip to content

Commit 73024f0

Browse files
author
Anbarasan Ravichandran
committed
RDKEMW-6681: getDolbyVisionMode api fails to return "Dark/Bright" in response for AVOutput plugins.
Reason for change: Added condition in getDolbyVisionMode() to return error for non DV content. Test Procedure: as per JIRA Risks: None Priority: P2 Signed-off-by: Anbarasan R <[email protected]>
1 parent 263272d commit 73024f0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

AVOutput/AVOutputTV.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2252,6 +2252,7 @@ namespace Plugin {
22522252
paramIndex_t indexInfo;
22532253
int dolbyMode = 0;
22542254
int err = 0;
2255+
tvVideoFormatType_t video_type = VIDEO_FORMAT_NONE;
22552256

22562257
if (parsingGetInputArgument(parameters, "DolbyVisionMode",inputInfo) != 0) {
22572258
LOGINFO("%s: Failed to parse argument\n", __FUNCTION__);
@@ -2262,6 +2263,12 @@ namespace Plugin {
22622263
returnResponse(false);
22632264
}
22642265

2266+
GetCurrentVideoFormat(&video_type);
2267+
if(video_type != VIDEO_FORMAT_DV)
2268+
{
2269+
LOGERR("%s: Invalid video format: %d \n", __FUNCTION__,video_type);
2270+
returnResponse(false);
2271+
}
22652272

22662273
if (getParamIndex("DolbyVisionMode",inputInfo,indexInfo) == -1) {
22672274
LOGERR("%s: getParamIndex failed to get \n", __FUNCTION__);

0 commit comments

Comments
 (0)