mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +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);
|
decoded_size = frame_size + sizeof(pts);
|
||||||
slock_lock(fifo_lock);
|
slock_lock(fifo_lock);
|
||||||
|
|
||||||
while (!decode_thread_dead
|
while (!decode_thread_dead && (video_decode_fifo != NULL)
|
||||||
&& fifo_write_avail(video_decode_fifo) < decoded_size)
|
&& fifo_write_avail(video_decode_fifo) < decoded_size)
|
||||||
{
|
{
|
||||||
if (!main_sleeping)
|
if (!main_sleeping)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user