mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-08-17 17:06:10 +00:00
Fix null pointer dereference if no frames have been received when the connection terminates
This commit is contained in:
parent
d5cbd7f69e
commit
495604dbc5
@ -125,6 +125,11 @@ static void decoder_renderer_setup(int width, int height, int redrawRate, void*
|
||||
static void decoder_renderer_cleanup() {
|
||||
int status = 0;
|
||||
|
||||
if((buf = ilclient_get_input_buffer(video_decode, 130, 1)) == NULL){
|
||||
fprintf(stderr, "Can't get video buffer\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
buf->nFilledLen = 0;
|
||||
buf->nFlags = OMX_BUFFERFLAG_TIME_UNKNOWN | OMX_BUFFERFLAG_EOS;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user