Explorar el Código

Fix a possible crash when a packet was freed on audio playback

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
Alexis Maiquez hace 3 años
padre
commit
476d45be0a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/WallpaperEngine/Audio/CAudioStream.cpp

+ 1 - 1
src/WallpaperEngine/Audio/CAudioStream.cpp

@@ -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;