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
5cf2bcd6
Commit
5cf2bcd6
authored
Jan 05, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RAM: we need to allocate the decoded string
This fixes
facce14d
.
parent
736ca616
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
modules/demux/playlist/ram.c
modules/demux/playlist/ram.c
+10
-10
No files found.
modules/demux/playlist/ram.c
View file @
5cf2bcd6
...
...
@@ -282,7 +282,7 @@ static int Demux( demux_t *p_demux )
&
psz_cdnum
,
&
psz_comments
);
/* clipinfo has various sub parameters, which is parsed by this function */
}
else
if
(
!
strcmp
(
psz_param
,
"author"
)
)
psz_author
=
decode_URI
(
psz_value
);
psz_author
=
decode_URI
_duplicate
(
psz_value
);
else
if
(
!
strcmp
(
psz_param
,
"start"
)
)
{
i_start
=
ParseTime
(
psz_value
,
strlen
(
psz_value
)
);
...
...
@@ -304,9 +304,9 @@ static int Demux( demux_t *p_demux )
}
}
else
if
(
!
strcmp
(
psz_param
,
"title"
)
)
psz_title
=
decode_URI
(
psz_value
);
psz_title
=
decode_URI
_duplicate
(
psz_value
);
else
if
(
!
strcmp
(
psz_param
,
"copyright"
)
)
psz_copyright
=
decode_URI
(
psz_value
);
psz_copyright
=
decode_URI
_duplicate
(
psz_value
);
else
{
/* TODO: insert option anyway? Currently ignores*/
/* INSERT_ELEM( ppsz_options, i_options, i_options, psz_option ); */
...
...
@@ -433,19 +433,19 @@ static void ParseClipInfo( const char *psz_clipinfo, char **ppsz_artist, char **
break
;
/* Put into args */
if
(
!
strcmp
(
psz_param
,
"artist name"
)
)
*
ppsz_artist
=
decode_URI
(
psz_value
);
*
ppsz_artist
=
decode_URI
_duplicate
(
psz_value
);
else
if
(
!
strcmp
(
psz_param
,
"title"
)
)
*
ppsz_title
=
decode_URI
(
psz_value
);
*
ppsz_title
=
decode_URI
_duplicate
(
psz_value
);
else
if
(
!
strcmp
(
psz_param
,
"album name"
)
)
*
ppsz_album
=
decode_URI
(
psz_value
);
*
ppsz_album
=
decode_URI
_duplicate
(
psz_value
);
else
if
(
!
strcmp
(
psz_param
,
"genre"
)
)
*
ppsz_genre
=
decode_URI
(
psz_value
);
*
ppsz_genre
=
decode_URI
_duplicate
(
psz_value
);
else
if
(
!
strcmp
(
psz_param
,
"year"
)
)
*
ppsz_year
=
decode_URI
(
psz_value
);
*
ppsz_year
=
decode_URI
_duplicate
(
psz_value
);
else
if
(
!
strcmp
(
psz_param
,
"cdnum"
)
)
*
ppsz_cdnum
=
decode_URI
(
psz_value
);
*
ppsz_cdnum
=
decode_URI
_duplicate
(
psz_value
);
else
if
(
!
strcmp
(
psz_param
,
"comments"
)
)
*
ppsz_comments
=
decode_URI
(
psz_value
);
*
ppsz_comments
=
decode_URI
_duplicate
(
psz_value
);
free
(
psz_suboption
);
psz_option_next
++
;
...
...
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