AddOnManager: Fix logic inversion
This commit is contained in:
@@ -595,8 +595,8 @@ AddOnManager::_FindEncoder(const media_format& format, const BPath& path,
|
|||||||
if (info->ref.directory != nref.node)
|
if (info->ref.directory != nref.node)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// check if the decoder matches the supplied format
|
// check if the encoder matches the supplied format
|
||||||
if (!info->outputFormat.Matches(&format)) {
|
if (info->outputFormat.Matches(&format)) {
|
||||||
*_encoderRef = info->ref;
|
*_encoderRef = info->ref;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user