Closed mewmew closed 8 years ago
This won't be changed in the near future, as these new APIs were just added to SFML 2.4 (released a few days ago) and most Linux distributions bundle older versions.
This won't be changed in the near future, as these new APIs were just added to SFML 2.4 (released a few days ago) and most Linux distributions bundle older versions.
Ah, I see. Running Arch Linux, so always bleeding on the edge :) Would you like to close this issue or keep it open until it becomes relevant?
It doesn't matter to me. I'll probably only change it after many months from now. If i change it now it will break versions that use 2.33 or earlier and I don't want to add conditional code just yet (until I test that the behaviour is the same).
It doesn't matter to me. I'll probably only change it after many months from now. If i change it now it will break versions that use 2.33 or earlier and I don't want to add conditional code just yet (until I test that the behaviour is the same).
Ok, makes sense. I'll close this issue for now as it is not relevent for the time being.
In the last commit (59f7c0c), the minimum SFML version got updated to 2.4.0, so you no longer get this warning.
In the last commit (59f7c0c), the minimum SFML version got updated to 2.4.0, so you no longer get this warning.
These warnings are now gone, and replaced with a couple of new ones.
[ 90%] Building CXX object CMakeFiles/DGEngine.dir/src/sfeMovie/AudioStream.cpp.o
/home/u/Desktop/diablo/DGEngine/src/sfeMovie/AudioStream.cpp: In member function ‘bool sfe::AudioStream::decodePacket(AVPacket*, AVFrame*, bool&)’:
/home/u/Desktop/diablo/DGEngine/src/sfeMovie/AudioStream.cpp:304:94: warning: ‘int avcodec_decode_audio4(AVCodecContext*, AVFrame*, int*, const AVPacket*)’ is deprecated [-Wdeprecated-declarations]
int decodedLength = avcodec_decode_audio4(m_codecCtx, outputFrame, &igotFrame, packet);
^
In file included from /usr/include/libavformat/avformat.h:319:0,
from /home/u/Desktop/diablo/DGEngine/src/sfeMovie/AudioStream.cpp:27:
/usr/include/libavcodec/avcodec.h:4852:5: note: declared here
int avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame,
^~~~~~~~~~~~~~~~~~~~~
[ 99%] Building CXX object CMakeFiles/DGEngine.dir/src/sfeMovie/VideoStream.cpp.o
/home/u/Desktop/diablo/DGEngine/src/sfeMovie/VideoStream.cpp: In member function ‘bool sfe::VideoStream::decodePacket(AVPacket*, AVFrame*, bool&, bool&)’:
/home/u/Desktop/diablo/DGEngine/src/sfeMovie/VideoStream.cpp:261:95: warning: ‘int avcodec_decode_video2(AVCodecContext*, AVFrame*, int*, const AVPacket*)’ is deprecated [-Wdeprecated-declarations]
int decodedLength = avcodec_decode_video2(m_codecCtx, outputFrame, &gotPicture, packet);
^
In file included from /usr/include/libavformat/avformat.h:319:0,
from /home/u/Desktop/diablo/DGEngine/src/sfeMovie/VideoStream.cpp:27:
/usr/include/libavcodec/avcodec.h:4901:5: note: declared here
int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
^~~~~~~~~~~~~~~~~~~~~
Using SFML 2.4.2 and FFMPEG 1:3.3.2.
Yes, sfeMovie uses FFMpeg 2.8. These weren't as simple as the others (where you just used a different function - FFMpeg2/FFMpeg3), so I left them as they are as they still work. Changing these involves changing the surrounding code. Probably only when FFMpeg finally removes them will I update these.
Edit: FFMpeg3 warnings fixed in 38e2a3b
From http://www.sfml-dev.org/documentation/2.4.0/deprecated.php
Member sf::Text::getColor () const
There is now fill and outline colors instead of a single global color. Use
getFillColor()
orgetOutlineColor()
instead.Member sf::Text::setColor (const Color &color)
There is now fill and outline colors instead of a single global color. Use
setFillColor()
orsetOutlineColor()
instead.Warnings from compiling rev 40afab360a26f087b2b3e72b8c8f1794e5cb50c2.
List of files using
getColor
and/orsetColor
: