Explorar o código

~ Fix compilation with latest avcoded library

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
Alexis Maiquez %!s(int64=4) %!d(string=hai) anos
pai
achega
42b8c92c1c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/WallpaperEngine/Render/CVideo.cpp

+ 1 - 1
src/WallpaperEngine/Render/CVideo.cpp

@@ -36,7 +36,7 @@ CVideo::CVideo (Core::CVideo* video, CContainer* container, CContext* context) :
     if (m_videoStream == -1)
         throw std::runtime_error ("Failed to find video stream");
 
-    AVCodec* codec = avcodec_find_decoder (m_formatCtx->streams [m_videoStream]->codecpar->codec_id);
+    const AVCodec* codec = avcodec_find_decoder (m_formatCtx->streams [m_videoStream]->codecpar->codec_id);
     if (codec == nullptr)
         throw std::runtime_error ("Failed to find codec");