Skip to content

Commit 05a6317

Browse files
authored
Merge pull request #259 from rdkcentral/feature/5197_AddMissingChanges
RDKEMW-5197 : Add Missed out changes in support/pq_dvt1.1
2 parents 60e002d + 15cfe8a commit 05a6317

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

AVOutput/AVOutputTV.cpp

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3568,6 +3568,10 @@ namespace Plugin {
35683568
returnResponse(false);
35693569
}
35703570

3571+
if (isPlatformSupport("DimmingMode") != 0) {
3572+
returnResponse(false);
3573+
}
3574+
35713575
if( !isCapablityCheckPassed( "DimmingMode" , inputInfo )) {
35723576
LOGERR("%s: CapablityCheck failed for DimmingMode\n", __FUNCTION__);
35733577
returnResponse(false);
@@ -3849,16 +3853,23 @@ namespace Plugin {
38493853
paramIndex_t indexInfo;
38503854
int dolbyMode = 0;
38513855
int err = 0;
3856+
tvVideoFormatType_t video_type = VIDEO_FORMAT_NONE;
38523857

38533858
if (parsingGetInputArgument(parameters, "DolbyVisionMode",inputInfo) != 0) {
38543859
LOGINFO("%s: Failed to parse argument\n", __FUNCTION__);
38553860
returnResponse(false);
38563861
}
38573862

38583863
if (isPlatformSupport("DolbyVisionMode") != 0) {
3859-
returnResponse(false);
3860-
}
3864+
returnResponse(false);
3865+
}
38613866

3867+
GetCurrentVideoFormat(&video_type);
3868+
if(video_type != VIDEO_FORMAT_DV)
3869+
{
3870+
LOGERR("%s: Invalid video format: %d \n", __FUNCTION__,video_type);
3871+
returnResponse(false);
3872+
}
38623873

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

0 commit comments

Comments
 (0)