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
31a16394
Commit
31a16394
authored
Aug 01, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vcdx: Fix memleaks.
parent
75a1834d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
modules/access/vcdx/access.c
modules/access/vcdx/access.c
+1
-0
modules/access/vcdx/info.c
modules/access/vcdx/info.c
+12
-11
No files found.
modules/access/vcdx/access.c
View file @
31a16394
...
...
@@ -651,6 +651,7 @@ VCDParse( access_t * p_access, /*out*/ vcdinfo_itemid_t * p_itemid,
psz_source
=
config_GetPsz
(
p_access
,
"vcd"
);
if
(
!
psz_source
||
0
==
strlen
(
psz_source
)
)
{
free
(
psz_source
);
/* Scan for a CD-ROM drive with a VCD in it. */
char
**
cd_drives
=
cdio_get_devices_with_cap
(
NULL
,
(
CDIO_FS_ANAL_SVCD
|
CDIO_FS_ANAL_CVD
...
...
modules/access/vcdx/info.c
View file @
31a16394
...
...
@@ -175,10 +175,11 @@ VCDMetaInfo( access_t *p_access, /*const*/ char *psz_mrl )
if
(
CDIO_INVALID_TRACK
!=
i_track
)
{
char
*
psz_title_format
=
config_GetPsz
(
p_access
,
MODULE_STRING
"-title-format"
);
char
*
psz_name
=
VCDFormatStr
(
p_access
,
p_vcdplayer
,
config_GetPsz
(
p_access
,
MODULE_STRING
"-title-format"
),
psz_mrl
,
&
(
p_vcdplayer
->
play_item
)
);
VCDFormatStr
(
p_access
,
p_vcdplayer
,
psz_title_format
,
psz_mrl
,
&
(
p_vcdplayer
->
play_item
)
);
free
(
psz_title_format
);
input_Control
(
p_vcdplayer
->
p_input
,
INPUT_SET_NAME
,
psz_name
);
}
...
...
@@ -385,14 +386,14 @@ VCDUpdateTitle( access_t *p_access )
if
(
psz_mrl
)
{
char
*
psz_name
;
snprintf
(
psz_mrl
,
psz_mrl_max
,
"%s%s"
,
VCD_MRL_PREFIX
,
p_vcdplayer
->
psz_source
);
psz_name
=
VCDFormatStr
(
p_access
,
p_vcdplayer
,
config_GetPsz
(
p_access
,
MODULE_STRING
"-title-format"
),
psz_mrl
,
&
(
p_vcdplayer
->
play_item
)
);
input_Control
(
p_vcdplayer
->
p_input
,
INPUT_SET_NAME
,
psz_name
);
free
(
psz_mrl
);
char
*
psz_title_format
=
config_GetPsz
(
p_access
,
MODULE_STRING
"-title-format"
)
snprintf
(
psz_mrl
,
psz_mrl_max
,
"%s%s"
,
VCD_MRL_PREFIX
,
p_vcdplayer
->
psz_source
);
psz_name
=
VCDFormatStr
(
p_access
,
p_vcdplayer
,
psz_title_format
,
psz_mrl
,
&
(
p_vcdplayer
->
play_item
)
);
input_Control
(
p_vcdplayer
->
p_input
,
INPUT_SET_NAME
,
psz_name
);
free
(
psz_title_format
);
free
(
psz_mrl
);
}
}
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