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
44b96fd1
Commit
44b96fd1
authored
Mar 25, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
visual: check for NULL in the right place.
parent
f7f6561b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
modules/visualization/visual/effects.c
modules/visualization/visual/effects.c
+6
-6
No files found.
modules/visualization/visual/effects.c
View file @
44b96fd1
/*****************************************************************************
* effects.c : Effects for the visualization system
*****************************************************************************
* Copyright (C) 2002 the VideoLAN team
* Copyright (C) 2002
-2009
the VideoLAN team
* $Id$
*
* Authors: Clément Stenac <zorglub@via.ecp.fr>
...
...
@@ -124,15 +124,15 @@ int spectrum_Run(visual_effect_t * p_effect, aout_instance_t *p_aout,
if
(
!
p_data
)
{
p_effect
->
p_data
=
p_data
=
malloc
(
sizeof
(
spectrum_data
)
);
p_data
->
peaks
=
calloc
(
80
,
sizeof
(
int
)
);
p_data
->
prev_heights
=
calloc
(
80
,
sizeof
(
int
)
);
if
(
!
p_data
)
if
(
!
p_data
)
{
free
(
p_s16_buff
);
return
-
1
;
}
p_data
->
peaks
=
calloc
(
80
,
sizeof
(
int
)
);
p_data
->
prev_heights
=
calloc
(
80
,
sizeof
(
int
)
);
peaks
=
(
int
*
)
p_data
->
peaks
;
prev_heights
=
(
int
*
)
p_data
->
prev_heights
;
}
...
...
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