File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff 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__);
You can’t perform that action at this time.
0 commit comments