https://bugs.kde.org/show_bug.cgi?id=490650

            Bug ID: 490650
           Summary: src/musicbrainz/MusicDNSAudioDecoder.cpp fails to
                    build on Ubuntu Jammy with Amarok git
    Classification: Applications
           Product: amarok
           Version: 3.0.81
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: amarok-bugs-d...@kde.org
          Reporter: joe.y...@gmail.com
  Target Milestone: kf5

***
If you're not sure this is actually a bug, instead post about it at
https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see
https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
src/musicbrainz/MusicDNSAudioDecoder.cpp fails to compile with Ubuntu Jammy's
version of FFMPEG (4.4.2)

STEPS TO REPRODUCE
1. Compile Amarok on Ubuntu Jammy from git after
42d249b659253b8970bd870d77a56c869e79bcef and
f6143b2df0b251f3e5e5665ea7121e49b0f45d7e.

OBSERVED RESULT
/<<PKGBUILDDIR>>/src/musicbrainz/MusicDNSAudioDecoder.cpp: In member function
‘int MusicDNSAudioDecoder::decode(const QString&, DecodedAudioData*, int)’:
/<<PKGBUILDDIR>>/src/musicbrainz/MusicDNSAudioDecoder.cpp:327:63: error:
invalid user-defined conversion from ‘QByteArray’ to ‘const char*’
[-fpermissive]
  327 |     if( avformat_open_input( &pFormatCtx, fileName.toLocal8Bit(),
nullptr, nullptr ) < 0 )
      |                                           ~~~~~~~~~~~~~~~~~~~~^~
See:
https://launchpadlibrarian.net/740431669/buildlog_ubuntu-jammy-amd64.amarok_2%3A3.0.1+git202407210215-0+yasi1~22~ubuntu22.04.1_BUILDING.txt.gz

EXPECTED RESULT
Compilation succeeds.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 22.04
(available in About System)
KDE Plasma Version: 5.24.7
KDE Frameworks Version: 5.92
Qt Version: 5.15.3

ADDITIONAL INFORMATION
fileName.toLocal8Bit().constData() looks like it was made in one of the FFMPEG
version branches, but not in the #elif LIBAVCODEC_VERSION_MAJOR >= 54 branch.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to