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
a1358b0c
Commit
a1358b0c
authored
Mar 25, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
visual: avoid a strdup/free.
parent
0412df76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
modules/visualization/visual/visual.c
modules/visualization/visual/visual.c
+1
-7
No files found.
modules/visualization/visual/visual.c
View file @
a1358b0c
...
@@ -189,12 +189,10 @@ static int Open( vlc_object_t *p_this )
...
@@ -189,12 +189,10 @@ static int Open( vlc_object_t *p_this )
{
{
aout_filter_t
*
p_filter
=
(
aout_filter_t
*
)
p_this
;
aout_filter_t
*
p_filter
=
(
aout_filter_t
*
)
p_this
;
aout_filter_sys_t
*
p_sys
;
aout_filter_sys_t
*
p_sys
;
vlc_value_t
val
;
char
*
psz_effects
,
*
psz_parser
;
char
*
psz_effects
,
*
psz_parser
;
video_format_t
fmt
;
video_format_t
fmt
;
if
(
(
p_filter
->
input
.
i_format
!=
VLC_FOURCC
(
'f'
,
'l'
,
'3'
,
'2'
)
&&
if
(
(
p_filter
->
input
.
i_format
!=
VLC_FOURCC
(
'f'
,
'l'
,
'3'
,
'2'
)
&&
p_filter
->
input
.
i_format
!=
VLC_FOURCC
(
'f'
,
'i'
,
'3'
,
'2'
)
)
)
p_filter
->
input
.
i_format
!=
VLC_FOURCC
(
'f'
,
'i'
,
'3'
,
'2'
)
)
)
{
{
...
@@ -217,11 +215,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -217,11 +215,7 @@ static int Open( vlc_object_t *p_this )
p_sys
->
effect
=
NULL
;
p_sys
->
effect
=
NULL
;
/* Parse the effect list */
/* Parse the effect list */
var_Create
(
p_filter
,
"effect-list"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
psz_parser
=
psz_effects
=
var_CreateGetString
(
p_filter
,
"effect-list"
);
var_Get
(
p_filter
,
"effect-list"
,
&
val
);
psz_parser
=
psz_effects
=
strdup
(
val
.
psz_string
);
free
(
val
.
psz_string
);
var_AddCallback
(
p_filter
,
"effect-list"
,
FilterCallback
,
NULL
);
var_AddCallback
(
p_filter
,
"effect-list"
,
FilterCallback
,
NULL
);
while
(
psz_parser
&&
*
psz_parser
!=
'\0'
)
while
(
psz_parser
&&
*
psz_parser
!=
'\0'
)
...
...
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