Conversation
VLC 4 changes the respective names of libvlc_Ended and libvlc_MediaPlayerEndReached to libvlc_Stopping and libvlc_MediaPlayerStopping. For reference, see this merge request from 2022 https://code.videolan.org/videolan/vlc/-/merge_requests/1565
|
see the discussion here: |
|
While compiling seems OK here too, the plug-in seems to only work with vlc-3 here. With vlc-4:
|
|
Yeah, it's a major caveat that I didn't test for runtime woes at all. There was some more care taken in that aspect in the linked PR above. |
|
Thank you for the contribution, but we prefer getting in proper VLC 4 support (including testing, possible refactoring, and more) rather than just bolting on little bits and pieces to "get it to load". IMO such an update would need fulfil the following requirements:
For the time being OBS supports VLC 3, because that's what the module is built for. Just making it compile with VLC 4 present would create the reasonable expectation of users that VLC 4 is indeed officially supported by OBS, which is not the case and would just lead to unnecessary friction for end users. |
|
@PatTheMav Sounds completely reasonable. Digging into this a bit further the API has changed enough for there to have to be some actual logic adaptations rather than getting away with some simple renamed symbols. As an example: Just forcing the plugin to load the new shared object gives us the following and the new API via |
VLC 4 changes the respective names of libvlc_Ended and libvlc_MediaPlayerEndReached to libvlc_Stopping and libvlc_MediaPlayerStopping.
For reference, see this merge request from 2022
https://code.videolan.org/videolan/vlc/-/merge_requests/1565
Description
This change updates the enum names to correspond with VLC 4. Additionally, there's a small compatibility block for older versions.
Motivation and Context
With VLC 4, a couple of enum names have been changed, resulting in build failures when attempting to compile OBS against that version.
How Has This Been Tested?
This patch has been tested to compile against OBS 32.1.0 and a pre-release version of VLC 4.0.0 on a Gentoo Linux box of mine.
Types of changes
Checklist: