mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-04 18:47:09 +00:00
Prevent 'dereference after NULL check'
This commit is contained in:
parent
d4051fcc27
commit
9bf63a7809
@ -1252,7 +1252,7 @@ static void decode_thread(void *data)
|
||||
decoded_size = frame_size + sizeof(pts);
|
||||
slock_lock(fifo_lock);
|
||||
|
||||
while (!decode_thread_dead
|
||||
while (!decode_thread_dead && (video_decode_fifo != NULL)
|
||||
&& fifo_write_avail(video_decode_fifo) < decoded_size)
|
||||
{
|
||||
if (!main_sleeping)
|
||||
|
Loading…
x
Reference in New Issue
Block a user