Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
7cc6aae1
Commit
7cc6aae1
authored
Jan 11, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetic fix
parent
86eae317
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
modules/demux/playlist/asx.c
modules/demux/playlist/asx.c
+7
-7
No files found.
modules/demux/playlist/asx.c
View file @
7cc6aae1
...
...
@@ -154,15 +154,15 @@ static int Demux( demux_t *p_demux )
p_sys
->
i_data_len
=
stream_Size
(
p_demux
->
s
)
+
1
;
/* This is a cheat to prevent unnecessary realloc */
if
(
p_sys
->
i_data_len
<=
0
&&
p_sys
->
i_data_len
<
16384
)
p_sys
->
i_data_len
=
1024
;
p_sys
->
psz_data
=
malloc
(
p_sys
->
i_data_len
*
sizeof
(
char
)
+
1
);
/* load the complete file */
for
(
;;
)
{
int
i_read
=
stream_Read
(
p_demux
->
s
,
&
p_sys
->
psz_data
[
i_pos
],
p_sys
->
i_data_len
-
i_pos
);
p_sys
->
psz_data
[
i_read
]
=
'\0'
;
if
(
i_read
<
p_sys
->
i_data_len
-
i_pos
)
break
;
/* Done */
i_pos
+=
i_read
;
p_sys
->
i_data_len
+=
1024
;
p_sys
->
psz_data
=
realloc
(
p_sys
->
psz_data
,
p_sys
->
i_data_len
*
sizeof
(
char
*
)
+
1
);
...
...
@@ -184,7 +184,7 @@ static int Demux( demux_t *p_demux )
char
*
psz_copyright_asx
=
NULL
;
char
*
psz_moreinfo_asx
=
NULL
;
char
*
psz_abstract_asx
=
NULL
;
char
*
psz_base_entry
=
NULL
;
char
*
psz_title_entry
=
NULL
;
char
*
psz_artist_entry
=
NULL
;
...
...
@@ -192,7 +192,7 @@ static int Demux( demux_t *p_demux )
char
*
psz_moreinfo_entry
=
NULL
;
char
*
psz_abstract_entry
=
NULL
;
int
i_entry_count
=
0
;
psz_parse
=
strcasestr
(
psz_parse
,
">"
);
while
(
(
psz_parse
=
strcasestr
(
psz_parse
,
"<"
)
)
&&
psz_parse
&&
*
psz_parse
)
...
...
@@ -420,7 +420,7 @@ static int Demux( demux_t *p_demux )
msg_Err
(
p_demux
,
"A ref outside an entry section"
);
continue
;
}
if
(
!
strncasecmp
(
psz_parse
,
"HREF"
,
4
)
)
{
if
(
(
psz_parse
=
strcasestr
(
psz_parse
,
"
\"
"
)
)
)
...
...
@@ -440,7 +440,7 @@ static int Demux( demux_t *p_demux )
asprintf
(
&
psz_name
,
"%d %s"
,
i_entry_count
,
(
psz_title_entry
?
psz_title_entry
:
p_current
->
p_input
->
psz_name
)
);
p_entry
=
input_ItemNew
(
p_playlist
,
psz_string
,
psz_name
);
FREENULL
(
psz_name
);
input_ItemCopyOptions
(
p_current
->
p_input
,
p_entry
);
p_entry
->
p_meta
=
vlc_meta_New
();
if
(
psz_title_entry
)
vlc_meta_SetTitle
(
p_entry
->
p_meta
,
psz_title_entry
);
...
...
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