Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
9a1a33f4
Commit
9a1a33f4
authored
Dec 05, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
M3U: some people do use
UTF-8
in m3u, revert to autodetect
parent
2a3eb944
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
modules/demux/playlist/m3u.c
modules/demux/playlist/m3u.c
+6
-1
No files found.
modules/demux/playlist/m3u.c
View file @
9a1a33f4
...
...
@@ -50,6 +50,11 @@ static int Control( demux_t *p_demux, int i_query, va_list args );
static
void
parseEXTINF
(
char
*
psz_string
,
char
**
ppsz_artist
,
char
**
ppsz_name
,
int
*
pi_duration
);
static
bool
ContainsURL
(
demux_t
*
p_demux
);
static
char
*
GuessEncoding
(
const
char
*
str
)
{
return
IsUTF8
(
str
)
?
strdup
(
str
)
:
FromLatin1
(
str
);
}
/*****************************************************************************
* Import_M3U: main import function
*****************************************************************************/
...
...
@@ -70,7 +75,7 @@ int Import_M3U( vlc_object_t *p_this )
||
demux_IsPathExtension
(
p_demux
,
".vlc"
)
||
demux_IsForced
(
p_demux
,
"m3u"
)
||
ContainsURL
(
p_demux
)
)
pf_dup
=
FromLocaleDup
;
/* locale character set (?) */
pf_dup
=
GuessEncoding
;
else
return
VLC_EGENERIC
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment