mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-06-18 23:01:06 +00:00
Protect against a null pointer exception if setup() fails
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user