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
81782115
Commit
81782115
authored
Jan 05, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asx parsing: don't FREENULL everything.
parent
5fa18d56
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/demux/playlist/asx.c
modules/demux/playlist/asx.c
+4
-4
No files found.
modules/demux/playlist/asx.c
View file @
81782115
...
...
@@ -529,13 +529,14 @@ static int Demux( demux_t *p_demux )
if
(
asprintf
(
&
psz_name
,
"%d %s"
,
i_entry_count
,
(
psz_title_entry
?
psz_title_entry
:
psz_current_input_name
)
)
!=
-
1
)
{
p_entry
=
input_item_NewExt
(
p_demux
,
psz_href
,
psz_name
,
i_options
,
(
const
char
*
const
*
)
ppsz_options
,
-
1
);
FREENULL
(
psz_name
);
free
(
psz_name
);
input_item_CopyOptions
(
p_current_input
,
p_entry
);
while
(
i_options
)
{
psz_name
=
ppsz_options
[
--
i_options
];
FREENULL
(
psz_name
);
free
(
psz_name
);
}
psz_name
=
NULL
;
if
(
psz_title_entry
)
input_item_SetTitle
(
p_entry
,
psz_title_entry
);
if
(
psz_artist_entry
)
input_item_SetArtist
(
p_entry
,
psz_artist_entry
);
...
...
@@ -577,7 +578,6 @@ static int Demux( demux_t *p_demux )
// init entry details
FREENULL
(
psz_href
);
psz_href
=
NULL
;
i_starttime
=
0
;
i_duration
=
0
;
}
...
...
@@ -602,7 +602,7 @@ static int Demux( demux_t *p_demux )
i_strlen
=
psz_parse
-
psz_backup
;
if
(
i_strlen
<
1
)
continue
;
FREENULL
(
psz_href
);
free
(
psz_href
);
psz_href
=
malloc
(
i_strlen
+
1
);
memcpy
(
psz_href
,
psz_backup
,
i_strlen
);
psz_href
[
i_strlen
]
=
'\0'
;
...
...
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