[vlc-commits] [Git][videolan/vlc][master] libvlc: fix network media parsing
Steve Lhomme (@robUx4)
gitlab at videolan.org
Tue Jan 21 10:30:14 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
a4debd38 by Maxime Chapelet at 2025-01-21T10:16:25+00:00
libvlc: fix network media parsing
Calls to `libvlc_media_parse_request` with smb server URL never succeeded
because `do_parse` var was always `false` when `input_net` var was `true`
and `libvlc_media_parse_network` flag was set.
This change fixes this problem and bring back the ability to parse network
files when the `libvlc_media_parse_network` flag is set
- - - - -
1 changed file:
- lib/media.c
Changes:
=====================================
lib/media.c
=====================================
@@ -764,8 +764,8 @@ int libvlc_media_parse_request(libvlc_instance_t *inst, libvlc_media_t *media,
do_parse = true;
else
{
- if (input_net && (parse_flag & libvlc_media_parse_network) == 0)
- do_parse = false;
+ if (input_net)
+ do_parse = parse_flag & libvlc_media_parse_network;
else if (parse_flag & libvlc_media_parse_local)
{
switch (input_type)
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a4debd38e8259e150e6a8c9347b8d5da2d065546
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a4debd38e8259e150e6a8c9347b8d5da2d065546
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list