Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
d6c0a965
Commit
d6c0a965
authored
May 30, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
visual: no need to strdup the name of the effect as it's only use with strcmp.
parent
c062239e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
modules/visualization/visual/visual.c
modules/visualization/visual/visual.c
+2
-5
modules/visualization/visual/visual.h
modules/visualization/visual/visual.h
+4
-4
No files found.
modules/visualization/visual/visual.c
View file @
d6c0a965
/*****************************************************************************
/*****************************************************************************
* visual.c : Visualisation system
* visual.c : Visualisation system
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002-200
6
the VideoLAN team
* Copyright (C) 2002-200
9
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Clément Stenac <zorglub@via.ecp.fr>
* Authors: Clément Stenac <zorglub@via.ecp.fr>
...
@@ -243,7 +243,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -243,7 +243,7 @@ static int Open( vlc_object_t *p_this )
strlen
(
pf_effect_run
[
i
].
psz_name
)
)
)
strlen
(
pf_effect_run
[
i
].
psz_name
)
)
)
{
{
p_effect
->
pf_run
=
pf_effect_run
[
i
].
pf_run
;
p_effect
->
pf_run
=
pf_effect_run
[
i
].
pf_run
;
p_effect
->
psz_name
=
strdup
(
pf_effect_run
[
i
].
psz_name
)
;
p_effect
->
psz_name
=
pf_effect_run
[
i
].
psz_name
;
break
;
break
;
}
}
}
}
...
@@ -261,7 +261,6 @@ static int Open( vlc_object_t *p_this )
...
@@ -261,7 +261,6 @@ static int Open( vlc_object_t *p_this )
if
(
(
psz_eoa
=
strchr
(
psz_parser
,
'}'
)
)
==
NULL
)
if
(
(
psz_eoa
=
strchr
(
psz_parser
,
'}'
)
)
==
NULL
)
{
{
msg_Err
(
p_filter
,
"unable to parse effect list. Aborting"
);
msg_Err
(
p_filter
,
"unable to parse effect list. Aborting"
);
free
(
p_effect
->
psz_name
);
free
(
p_effect
);
free
(
p_effect
);
break
;
break
;
}
}
...
@@ -314,7 +313,6 @@ static int Open( vlc_object_t *p_this )
...
@@ -314,7 +313,6 @@ static int Open( vlc_object_t *p_this )
msg_Err
(
p_filter
,
"no suitable vout module"
);
msg_Err
(
p_filter
,
"no suitable vout module"
);
for
(
int
i
=
0
;
i
<
p_sys
->
i_effect
;
i
++
)
for
(
int
i
=
0
;
i
<
p_sys
->
i_effect
;
i
++
)
{
{
free
(
p_sys
->
effect
[
i
]
->
psz_name
);
free
(
p_sys
->
effect
[
i
]
->
psz_args
);
free
(
p_sys
->
effect
[
i
]
->
psz_args
);
free
(
p_sys
->
effect
[
i
]
);
free
(
p_sys
->
effect
[
i
]
);
}
}
...
@@ -404,7 +402,6 @@ static void Close( vlc_object_t *p_this )
...
@@ -404,7 +402,6 @@ static void Close( vlc_object_t *p_this )
free
(
(
(
spectrum_data
*
)
p_effect
->
p_data
)
->
prev_heights
);
free
(
(
(
spectrum_data
*
)
p_effect
->
p_data
)
->
prev_heights
);
}
}
free
(
p_effect
->
p_data
);
free
(
p_effect
->
p_data
);
free
(
p_effect
->
psz_name
);
free
(
p_effect
->
psz_args
);
free
(
p_effect
->
psz_args
);
free
(
p_effect
);
free
(
p_effect
);
#undef p_effect
#undef p_effect
...
...
modules/visualization/visual/visual.h
View file @
d6c0a965
/*****************************************************************************
/*****************************************************************************
* visual.h : Header for the visualisation system
* visual.h : Header for the visualisation system
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002 the VideoLAN team
* Copyright (C) 2002
-2009
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Clément Stenac <zorglub@via.ecp.fr>
* Authors: Clément Stenac <zorglub@via.ecp.fr>
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
typedef
struct
visual_effect_t
typedef
struct
visual_effect_t
{
{
c
har
*
psz_name
;
/* Filter name*/
c
onst
char
*
psz_name
;
/* Filter name*/
int
(
*
pf_run
)(
struct
visual_effect_t
*
,
aout_instance_t
*
,
int
(
*
pf_run
)(
struct
visual_effect_t
*
,
aout_instance_t
*
,
aout_buffer_t
*
,
picture_t
*
);
aout_buffer_t
*
,
picture_t
*
);
...
...
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