filter plugin will not be used when init failed (plugin not found or none selected)
This commit is contained in:
parent
2196d04734
commit
1dcf48df2a
|
@ -711,9 +711,14 @@ void VBA::updateFilter()
|
|||
filterMagnification = 1;
|
||||
break;
|
||||
case FILTER_PLUGIN:
|
||||
if (rpiInit(pluginName))
|
||||
if( rpiInit( pluginName ) ) {
|
||||
filterFunction = rpiFilter;
|
||||
filterMagnification = rpiScaleFactor();
|
||||
} else {
|
||||
filterType = FILTER_NONE;
|
||||
updateFilter();
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case FILTER_TVMODE:
|
||||
filterFunction = ScanlinesTV;
|
||||
|
@ -792,10 +797,15 @@ void VBA::updateFilter()
|
|||
filterMagnification = 1;
|
||||
break;
|
||||
case FILTER_PLUGIN:
|
||||
if (rpiInit(pluginName))
|
||||
if( rpiInit( pluginName ) ) {
|
||||
filterFunction = rpiFilter;
|
||||
filterMagnification = rpiScaleFactor();
|
||||
b16to32Video=true;
|
||||
} else {
|
||||
filterType = FILTER_NONE;
|
||||
updateFilter();
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case FILTER_TVMODE:
|
||||
filterFunction = ScanlinesTV32;
|
||||
|
|
Loading…
Reference in New Issue