Skip to content

Commit

Permalink
avdevice plugin: fix dependency check part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
onkelandy committed Jul 24, 2023
1 parent f25f250 commit b75576b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avdevice/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,7 @@ def _checkdependency(self, dep_function, dep_type):
self.logger.log(VERBOSE2,
"Checking Dependency {}: Expectedvalue after Translation {}. Dependitem: {}, expected {}".format(
self._name, expectedvalue, dependitem, expectedvalue))
if type(dependvalue) == type(expectedvalue):
if type(dependvalue) == type(expectedvalue) or (isinstance(dependvalue, (int,float)) and isinstance(expectedvalue, (int,float))):
groupcount[group] += 1 if (dependvalue == expectedvalue and compare == '==') or \
(dependvalue >= expectedvalue and compare == '>=') or \
(dependvalue <= expectedvalue and compare == '<=') or \
Expand Down

0 comments on commit b75576b

Please sign in to comment.