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
d69171a2
Commit
d69171a2
authored
Jul 21, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
m3u: factorize.
parent
c06c0301
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
modules/demux/playlist/m3u.c
modules/demux/playlist/m3u.c
+6
-9
No files found.
modules/demux/playlist/m3u.c
View file @
d69171a2
...
...
@@ -232,7 +232,7 @@ static int Demux( demux_t *p_demux )
LocaleFree
(
psz_parse
);
free
(
psz_mrl
);
if
(
psz_artist
&&
*
psz_artist
)
if
(
!
EMPTY_STR
(
psz_artist
)
)
input_item_SetArtist
(
p_input
,
psz_artist
);
if
(
psz_name
)
input_item_SetTitle
(
p_input
,
psz_name
);
if
(
!
EMPTY_STR
(
psz_album_art
)
)
...
...
@@ -253,14 +253,11 @@ static int Demux( demux_t *p_demux )
{
/* Cleanup state */
while
(
i_options
--
)
free
(
(
char
*
)
ppsz_options
[
i_options
]
);
free
(
ppsz_options
);
ppsz_options
=
NULL
;
i_options
=
0
;
free
(
psz_name
);
psz_name
=
NULL
;
free
(
psz_artist
);
psz_artist
=
NULL
;
free
(
psz_album_art
);
psz_album_art
=
NULL
;
FREENULL
(
ppsz_options
);
i_options
=
0
;
FREENULL
(
psz_name
);
FREENULL
(
psz_artist
);
FREENULL
(
psz_album_art
);
i_parsed_duration
=
0
;
i_duration
=
-
1
;
...
...
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