Protect against a null pointer exception if setup() fails

This commit is contained in:
Cameron Gutman 2014-07-01 07:27:32 -07:00
parent ea3b1a7438
commit 3f00885d2c

View File

@ -9,8 +9,10 @@ public class ConfigurableDecoderRenderer implements VideoDecoderRenderer {
@Override
public void release() {
if (decoderRenderer != null) {
decoderRenderer.release();
}
}
@Override
public boolean setup(int width, int height, int redrawRate, Object renderTarget, int drFlags) {