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