openhome / ohPlayer

ohPlayer is a full featured OpenHome media renderer licenced under an MIT licence

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not play songs from Qobuz in the playlist

Dual01 opened this issue · comments

There seems to be a buck in the linux version of the Qobuz api: One can add songs from Qobuz to the playlist but ohplayer does not play them and jumps to the next song. It plays only songs on the playlist from the local UPnP server.

Then, I tried to to compile the ohplayer on Debian Stretch with the internal codecs. But when I use the option USE_LIBAVCODEC=1, I get compilation errors:

g++ -c -Wall -std=c++0x -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -DTARG_ARCH=Linux-rpi -fstack-protector -fstack-check -DDEFINE_LITTLE_ENDIAN -DUSE_LIBAVCODEC -I../dependencies/Linux-rpi/ohMediaPlayer/include -I../dependencies/Linux-rpi/ohNetmon/include -I../dependencies/Linux-rpi/openssl/include -I../dependencies/Linux-rpi/ohNetGenerated-Linux-rpi-Release/include/ohnet/OpenHome/Net/Core -I../dependencies/Linux-rpi/ohNet-Linux-rpi-Release/include/ohnet -c ConfigGTKKeyStore.cpp -o raspbian/objs/ConfigGTKKeyStore.o
g++ -c -Wall -std=c++0x -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -DTARG_ARCH=Linux-rpi -fstack-protector -fstack-check -DDEFINE_LITTLE_ENDIAN -DUSE_LIBAVCODEC -I../dependencies/Linux-rpi/ohMediaPlayer/include -I../dependencies/Linux-rpi/ohNetmon/include -I../dependencies/Linux-rpi/openssl/include -I../dependencies/Linux-rpi/ohNetGenerated-Linux-rpi-Release/include/ohnet/OpenHome/Net/Core -I../dependencies/Linux-rpi/ohNet-Linux-rpi-Release/include/ohnet -c RamStore.cpp -o raspbian/objs/RamStore.o
g++ -c -Wall -std=c++0x -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -DTARG_ARCH=Linux-rpi -fstack-protector -fstack-check -DDEFINE_LITTLE_ENDIAN -DUSE_LIBAVCODEC -I../dependencies/Linux-rpi/ohMediaPlayer/include -I../dependencies/Linux-rpi/ohNetmon/include -I../dependencies/Linux-rpi/openssl/include -I../dependencies/Linux-rpi/ohNetGenerated-Linux-rpi-Release/include/ohnet/OpenHome/Net/Core -I../dependencies/Linux-rpi/ohNet-Linux-rpi-Release/include/ohnet -c ControlPointProxy.cpp -o raspbian/objs/ControlPointProxy.o
g++ -c -Wall -std=c++0x -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -DTARG_ARCH=Linux-rpi -fstack-protector -fstack-check -DDEFINE_LITTLE_ENDIAN -DUSE_LIBAVCODEC -I../dependencies/Linux-rpi/ohMediaPlayer/include -I../dependencies/Linux-rpi/ohNetmon/include -I../dependencies/Linux-rpi/openssl/include -I../dependencies/Linux-rpi/ohNetGenerated-Linux-rpi-Release/include/ohnet/OpenHome/Net/Core -I../dependencies/Linux-rpi/ohNet-Linux-rpi-Release/include/ohnet -c Libav.cpp -o raspbian/objs/Libav.o
Libav.cpp: In member function ‘virtual OpenHome::TBool OpenHome::Media::Codec::CodecLibAV::Recognise(const OpenHome::Media::Codec::EncodedStreamInfo&)’:
Libav.cpp:489:21: error: ‘const class OpenHome::Media::Codec::EncodedStreamInfo’ has no member named ‘RawPcm’
if (aStreamInfo.RawPcm())
^
Libav.cpp: In member function ‘virtual void OpenHome::Media::Codec::CodecLibAV::StreamInitialise()’:
Libav.cpp:623:39: warning: ‘AVStream::codec’ is deprecated (declared at /usr/include/arm-linux-gnueabihf/libavformat/avformat.h:893) [-Wdeprecated-declarations]
if (iAvFormatCtx->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO)
^
Libav.cpp:623:39: warning: ‘AVStream::codec’ is deprecated (declared at /usr/include/arm-linux-gnueabihf/libavformat/avformat.h:893) [-Wdeprecated-declarations]
Libav.cpp:627:47: warning: ‘AVStream::codec’ is deprecated (declared at /usr/include/arm-linux-gnueabihf/libavformat/avformat.h:893) [-Wdeprecated-declarations]
switch (iAvFormatCtx->streams[i]->codec->codec_id)
^
Libav.cpp:627:47: warning: ‘AVStream::codec’ is deprecated (declared at /usr/include/arm-linux-gnueabihf/libavformat/avformat.h:893) [-Wdeprecated-declarations]
Libav.cpp:654:57: warning: ‘AVStream::codec’ is deprecated (declared at /usr/include/arm-linux-gnueabihf/libavformat/avformat.h:893) [-Wdeprecated-declarations]
iAvCodecContext = iAvFormatCtx->streams[iStreamId]->codec;
^
Libav.cpp:654:57: warning: ‘AVStream::codec’ is deprecated (declared at /usr/include/arm-linux-gnueabihf/libavformat/avformat.h:893) [-Wdeprecated-declarations]
Libav.cpp:777:43: error: no matching function for call to ‘OpenHome::Media::Codec::ICodecController::OutputDecodedStream(int64_t&, OpenHome::TUint&, int&, int&, OpenHome::Brn, OpenHome::TUint64&, int, bool)’
false);

Does someone have an idea what could be the problem?

got in running with the updated Libav.cpp and makefile from Andre