Commit 75a167f5 authored by Konstantin Pavlov's avatar Konstantin Pavlov
Browse files

m3u: assume m3u with BOM at start as utf-8 encoded.


X-Patched-By: default avatarSergey Bolshakov <sbolshakov@altlinux.org>
parent 785f8e66
......@@ -70,6 +70,7 @@ int Import_M3U( vlc_object_t *p_this )
char *(*pf_dup) (const char *);
if( POKE( p_peek, "RTSPtext", 8 ) /* QuickTime */
|| POKE( p_peek, "\xef\xbb\xbf" "#EXTM3U", 10) /* BOM at start */
|| demux_IsPathExtension( p_demux, ".m3u8" )
|| demux_IsForced( p_demux, "m3u8" ) )
pf_dup = CheckUnicode; /* UTF-8 */
......
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