Repository navigation
vlc-video: Host code behind vlc-video-host.h (#857) - #1248
Merged
Merged
Conversation
Adds vlc-video-host.h and a stub POSIX host that the new cmocka test test_vlc_host_path compiles on its own; the stub drops the path, so the test fails until the host code moves.
The libVLC lookup (Windows registry, macOS VLC.app with libvlccore and
VLC_PLUGIN_PATH, libvlc.so.5 elsewhere), the macOS libvlccore unload and
the Windows path separator rewrite move to vlc-video-host-{windows,macos,
posix}.c.h, each in its own unity group and PCH that CMake picks per OS.
The shared files and the core PCH lose their conditionals. The MSVC
ssize_t shim in vlc-video-plugin.h stays: every TU includes that header
for libvlc_media.h.
zackees
enabled auto-merge
October 17, 2026 13:34
Member
Author
|
Local run note: the GREEN |
Member
Author
|
Update: the third full pass did complete after the wrapper timed out (the tests kept running and logged their summary): 279/279. So all GREEN passes passed: 279/279, 6/6 (vlc), 279/279. |
This was referenced Oct 17, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #857 (part of #847).
Moved behind
plugins/vlc-video/vlc-video-host.h#ifdef)load_libvlc_module()registry lookup ofInstallDir\libvlc.dll(_WIN32)vlc_host_open_libvlc()invlc-video-host-windows.c.h/Applications/VLC.apppaths,VLC_PLUGIN_PATH,libvlccore.dylibpreload (__APPLE__)vlc_host_open_libvlc()invlc-video-host-macos.c.hlibvlc.so.5defaultvlc_host_open_libvlc()invlc-video-host-posix.c.hlibvlc_core_moduleglobal + dlclose inobs_module_unload(__APPLE__)vlc_host_unload()(macOS closes libvlccore, others no-op), still called beforelibvlc_moduleis closedadd_file/→\for non-URLs (_WIN32)vlc_host_native_path()(Windows only rewrites)<windows.h>invlc-video.pch.h(_WIN32)build/vlc-video-windows.pch.hEach host file has its own unity group (
build/vlc-video.{windows,macos,posix}+.h.c) and PCH;CMakeLists.txtpicks the group byPLATFORM_IDlike decklink. Behaviour is unchanged (same return-NULL/false paths, same unload order).Documented exception: the
_MSC_VERssize_ttypedef invlc-video-plugin.hstays.libvlc_media.hneeds it and every TU (the shared core group) includes that header, so it cannot move into a Windows-only group header.Baseline delta (
ci/platform-ifdef-baseline.json, regenerated with--update)plugins/vlc-video/build/vlc-video.pch.h: 2 → 0plugins/vlc-video/vlc-video-plugin.c.h: 4 → 0plugins/vlc-video/vlc-video-source.c.h: 1 → 0plugins/vlc-video/vlc-video-plugin.h: 1 (the ssize_t exception)Total for vlc-video: 8 → 1.
RED / GREEN
test/cmocka/test_vlc_host_path.c(+tests.d/test_vlc_host_path.cmake, Linux only) compilesvlc-video-host-posix.c.hon its own against a stub that drops the path:rust/tools/linux-validate/run.sh --repeat 1→test_vlc_host_path ... Failed(test_vlc_host_path.c:20).run.sh --repeat 1 --tests 'vlc'→ 279/279 passed, including test_vlc_host_path, test_vlc_audio_pacing, test_vlc_audio_track, test_vlc_channel_order, test_vlc_drain_gate, test_vlc_playlist_gap./→\conversion is not unit-tested on Linux: its file needs<windows.h>../lintrc=0.What CI must verify
The macOS and Windows host groups were not compiled locally.
ci/ci_scope.pyselects the macOS and Windows lanes for this change, so PR CI is the only compile check forvlc-video-host-macos.c.handvlc-video-host-windows.c.h.