AddOnManager: Fix logic inversion

This commit is contained in:
Dario Casalinuovo 2015-12-05 13:14:18 +01:00
parent 6dd94f5e3a
commit 2b480e44f3

View File

@ -595,8 +595,8 @@ AddOnManager::_FindEncoder(const media_format& format, const BPath& path,
if (info->ref.directory != nref.node)
continue;
// check if the decoder matches the supplied format
if (!info->outputFormat.Matches(&format)) {
// check if the encoder matches the supplied format
if (info->outputFormat.Matches(&format)) {
*_encoderRef = info->ref;
return true;
}