Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
3cc8c40d
Commit
3cc8c40d
authored
Aug 03, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* M3U: make sure strings are UTF8
* old: convert
parent
9f1f7af1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
modules/demux/playlist/m3u.c
modules/demux/playlist/m3u.c
+4
-0
modules/demux/playlist/old.c
modules/demux/playlist/old.c
+6
-1
No files found.
modules/demux/playlist/m3u.c
View file @
3cc8c40d
...
...
@@ -199,9 +199,13 @@ static int Demux( demux_t *p_demux )
b_cleanup
=
VLC_TRUE
;
if
(
!
psz_mrl
)
goto
error
;
EnsureUTF8
(
psz_name
);
EnsureUTF8
(
psz_mrl
);
p_item
=
playlist_ItemNew
(
p_playlist
,
psz_mrl
,
psz_name
);
for
(
i
=
0
;
i
<
i_options
;
i
++
)
{
EnsureUTF8
(
ppsz_options
[
i
]
);
playlist_ItemAddOption
(
p_item
,
ppsz_options
[
i
]
);
}
p_item
->
input
.
i_duration
=
i_duration
;
...
...
modules/demux/playlist/old.c
View file @
3cc8c40d
...
...
@@ -77,6 +77,8 @@ static int Demux( demux_t *p_demux)
p_playlist
->
pp_items
[
p_playlist
->
i_index
]
->
b_autodeletion
=
VLC_TRUE
;
while
(
(
psz_line
=
stream_ReadLine
(
p_demux
->
s
)
)
!=
NULL
)
{
char
*
psz_unicode
;
if
(
(
psz_line
[
0
]
==
'#'
)
||
(
psz_line
[
0
]
==
'\r'
)
||
(
psz_line
[
0
]
==
'\n'
)
||
(
psz_line
[
0
]
==
(
char
)
0
)
)
{
...
...
@@ -90,10 +92,13 @@ static int Demux( demux_t *p_demux)
if
(
psz_line
[
strlen
(
psz_line
)
-
1
]
==
'\r'
)
psz_line
[
strlen
(
psz_line
)
-
1
]
=
(
char
)
0
;
}
playlist_Add
(
p_playlist
,
psz_line
,
psz_line
,
PLAYLIST_APPEND
,
psz_unicode
=
FromLocale
(
psz_line
);
playlist_Add
(
p_playlist
,
psz_unicode
,
psz_unicode
,
PLAYLIST_APPEND
,
PLAYLIST_END
);
free
(
psz_line
);
LocaleFree
(
psz_line
);
}
p_demux
->
b_die
=
VLC_TRUE
;
...
...
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