Bug 489694

Summary: phonon-vlc-0.12.0 fails to build against vlc 4.0.0-dev (vlc.git as of 2024-07-03): src/mediaplayer.h:140:5: error: ‘libvlc_track_description_t’ does not name a type; did you mean ‘libvlc_title_description_t’?
Product: [Frameworks and Libraries] phonon-backend-vlc Reporter: Andreas Sturmlechner <asturm>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: REPORTED ---    
Severity: normal CC: bcooksley, fabo, gerbilsoft, heiko.becker, jb, myriam, sitter
Priority: NOR    
Version: 0.12.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: media-libs:phonon-vlc-0.12.0-r1:20240703-185029.log
Initial attempt to fix the VLC4 build.

Description Andreas Sturmlechner 2024-07-03 18:58:45 UTC
Created attachment 171342 [details]
media-libs:phonon-vlc-0.12.0-r1:20240703-185029.log

It may be a bit early, but phonon-vlc is the only remaining phonon backend and vlc-4 will be released at some point hopefully, being Qt6 based.

Attaching full build.log.
Comment 1 David Korth 2024-09-13 02:02:25 UTC
Created attachment 173607 [details]
Initial attempt to fix the VLC4 build.

I put together some quick hacks to get phonon-vlc to work with the current git version of VLC4.

Main differences:
* The old track API (which was in deprecated.h) is completely gone. The new tracklist API must be used instead.
* Several enum values were renamed and/or removed.

I'm not sure how to properly reimplement MediaPlayer::setSubtitle() or MediaPlayer::setAudioTrack() yet.

I'll submit this on the KDE GitLab instance later.