Skip to content
Snippets Groups Projects
Commit a4debd38 authored by Maxime Chapelet's avatar Maxime Chapelet Committed by Steve Lhomme
Browse files

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
parent c12595f1
No related branches found
No related tags found
1 merge request!6697libvlc: fix network media parsing
Pipeline #557543 passed with stage
in 18 minutes and 10 seconds
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment