Commit bf472b10 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

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

parent e69b3ad3
......@@ -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