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
2416db15
Commit
2416db15
authored
Jul 30, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
podcast: no need to strdup (as we free the original value afterward).
parent
bd808941
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
modules/demux/playlist/podcast.c
modules/demux/playlist/podcast.c
+8
-5
No files found.
modules/demux/playlist/podcast.c
View file @
2416db15
...
...
@@ -223,30 +223,32 @@ static int Demux( demux_t *p_demux )
#define SET_DATA( field, name ) \
else if( !strcmp( psz_elname, name ) ) \
{ \
field =
strdup( psz_text );
\
field =
psz_text;
\
}
/* item specific meta data */
if
(
b_item
==
true
)
{
if
(
!
strcmp
(
psz_elname
,
"title"
)
)
{
psz_item_name
=
strdup
(
psz_text
)
;
psz_item_name
=
psz_text
;
}
else
if
(
!
strcmp
(
psz_elname
,
"itunes:author"
)
||
!
strcmp
(
psz_elname
,
"author"
)
)
{
/* <author> isn't standard iTunes podcast stuff */
psz_item_author
=
strdup
(
psz_text
)
;
psz_item_author
=
psz_text
;
}
else
if
(
!
strcmp
(
psz_elname
,
"itunes:summary"
)
||
!
strcmp
(
psz_elname
,
"description"
)
)
{
/* <description> isn't standard iTunes podcast stuff */
psz_item_summary
=
strdup
(
psz_text
)
;
psz_item_summary
=
psz_text
;
}
SET_DATA
(
psz_item_date
,
"pubDate"
)
SET_DATA
(
psz_item_category
,
"itunes:category"
)
SET_DATA
(
psz_item_duration
,
"itunes:duration"
)
SET_DATA
(
psz_item_keywords
,
"itunes:keywords"
)
SET_DATA
(
psz_item_subtitle
,
"itunes:subtitle"
)
else
free
(
psz_text
);
}
#undef SET_DATA
...
...
@@ -276,13 +278,14 @@ static int Demux( demux_t *p_demux )
_
(
"Podcast Info"
),
_
(
"Podcast Summary"
),
"%s"
,
psz_text
);
}
free
(
psz_text
);
}
else
{
msg_Dbg
(
p_demux
,
"unhandled text in element '%s'"
,
psz_elname
);
free
(
psz_text
);
}
free
(
psz_text
);
break
;
}
// End element
...
...
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