Commit b4a40fb8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

M3U export: use local paths if applicable (fix #4063)

(cherry picked from commit bf472b10b5b217259a1d6fabcf438c5d196096c4)
parent f51b6af2
......@@ -34,6 +34,7 @@
#include <vlc_input.h>
#include <vlc_meta.h>
#include <vlc_charset.h>
#include <vlc_url.h>
#include <assert.h>
......@@ -105,6 +106,13 @@ static void DoChildren( playlist_export_t *p_export, playlist_item_t *p_root,
}
vlc_mutex_unlock( &p_current->p_input->lock );
/* Stupid third party players don't understand file: URIs. */
char *psz_path = make_path( psz_uri );
if( psz_path != NULL )
{
free( psz_uri );
psz_uri = psz_path;
}
fprintf( p_export->p_file, "%s\n", psz_uri );
free( psz_uri );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment