Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
e2ca77a9
Commit
e2ca77a9
authored
Nov 26, 2002
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow windows style linebreaks in .m3u files. and fixed a minor bug
parent
ecf04969
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
modules/demux/m3u.c
modules/demux/m3u.c
+7
-4
No files found.
modules/demux/m3u.c
View file @
e2ca77a9
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* m3u.c: a meta demux to parse m3u and asx playlists
* m3u.c: a meta demux to parse m3u and asx playlists
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: m3u.c,v 1.
8 2002/11/25 15:56:39
sigmunau Exp $
* $Id: m3u.c,v 1.
9 2002/11/26 18:58:33
sigmunau Exp $
*
*
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
* Gildas Bazin <gbazin@netcourrier.com>
* Gildas Bazin <gbazin@netcourrier.com>
...
@@ -188,7 +188,7 @@ static int Demux ( input_thread_t *p_input )
...
@@ -188,7 +188,7 @@ static int Demux ( input_thread_t *p_input )
/* Depending on wether we are dealing with an m3u/asf file, the end of
/* Depending on wether we are dealing with an m3u/asf file, the end of
* line token will be different */
* line token will be different */
if
(
p_m3u
->
i_type
==
TYPE_ASX
)
if
(
p_m3u
->
i_type
==
TYPE_ASX
||
p_m3u
->
i_type
==
TYPE_HTML
)
eol_tok
=
'>'
;
eol_tok
=
'>'
;
else
else
eol_tok
=
'\n'
;
eol_tok
=
'\n'
;
...
@@ -210,8 +210,11 @@ static int Demux ( input_thread_t *p_input )
...
@@ -210,8 +210,11 @@ static int Demux ( input_thread_t *p_input )
}
}
else
else
{
{
psz_line
[
i_linepos
]
=
p_buf
[
i_bufpos
];
if
(
eol_tok
!=
'\n'
||
p_buf
[
i_bufpos
]
!=
'\r'
)
i_linepos
++
;
{
psz_line
[
i_linepos
]
=
p_buf
[
i_bufpos
];
i_linepos
++
;
}
}
}
i_size
--
;
i_bufpos
++
;
i_size
--
;
i_bufpos
++
;
...
...
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