mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 13:56:48 +08:00
Fix a possible crash when a packet was freed on audio playback
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
This commit is contained in:
parent
490718c22b
commit
476d45be0a
@ -57,7 +57,7 @@ int audio_read_thread (void* arg)
|
||||
if (packet->stream_index == stream->getAudioStream ())
|
||||
stream->queuePacket (packet);
|
||||
else
|
||||
av_packet_free (&packet);
|
||||
av_packet_unref (packet);
|
||||
|
||||
if (stream->isInitialized () == false)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user