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
937fa424
Commit
937fa424
authored
Jul 31, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
podcast: no need to strdup the string here.
parent
afe8f372
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
modules/demux/playlist/podcast.c
modules/demux/playlist/podcast.c
+9
-5
No files found.
modules/demux/playlist/podcast.c
View file @
937fa424
...
@@ -189,29 +189,33 @@ static int Demux( demux_t *p_demux )
...
@@ -189,29 +189,33 @@ static int Demux( demux_t *p_demux )
if
(
!
strcmp
(
psz_name
,
"url"
)
)
if
(
!
strcmp
(
psz_name
,
"url"
)
)
{
{
free
(
psz_item_mrl
);
free
(
psz_item_mrl
);
psz_item_mrl
=
strdup
(
psz_value
)
;
psz_item_mrl
=
psz_value
;
}
}
else
if
(
!
strcmp
(
psz_name
,
"length"
)
)
else
if
(
!
strcmp
(
psz_name
,
"length"
)
)
{
{
free
(
psz_item_size
);
free
(
psz_item_size
);
psz_item_size
=
strdup
(
psz_value
)
;
psz_item_size
=
psz_value
;
}
}
else
if
(
!
strcmp
(
psz_name
,
"type"
)
)
else
if
(
!
strcmp
(
psz_name
,
"type"
)
)
{
{
free
(
psz_item_type
);
free
(
psz_item_type
);
psz_item_type
=
strdup
(
psz_value
)
;
psz_item_type
=
psz_value
;
}
}
else
else
{
msg_Dbg
(
p_demux
,
"unhandled attribure %s in element %s"
,
msg_Dbg
(
p_demux
,
"unhandled attribure %s in element %s"
,
psz_name
,
psz_elname
);
psz_name
,
psz_elname
);
free
(
psz_value
);
}
}
}
else
else
{
msg_Dbg
(
p_demux
,
"unhandled attribure %s in element %s"
,
msg_Dbg
(
p_demux
,
"unhandled attribure %s in element %s"
,
psz_name
,
psz_elname
);
psz_name
,
psz_elname
);
free
(
psz_name
);
free
(
psz_value
);
free
(
psz_value
);
}
}
free
(
psz_name
);
}
break
;
break
;
}
}
case
XML_READER_TEXT
:
case
XML_READER_TEXT
:
...
...
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