mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 19:42:45 +00:00
Protect against a null pointer exception if setup() fails
This commit is contained in:
parent
ea3b1a7438
commit
3f00885d2c
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user