git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25f6146
)
puzzle: remove tautology
author
Rémi Denis-Courmont
<remi@remlab.net>
Wed, 23 Apr 2014 21:02:00 +0000
(
00:02
+0300)
committer
Rémi Denis-Courmont
<remi@remlab.net>
Wed, 23 Apr 2014 21:02:00 +0000
(
00:02
+0300)
modules/video_filter/puzzle_mgt.c
patch
|
blob
|
history
diff --git
a/modules/video_filter/puzzle_mgt.c
b/modules/video_filter/puzzle_mgt.c
index
8f2fd19
..
d770d7a
100644
(file)
--- a/
modules/video_filter/puzzle_mgt.c
+++ b/
modules/video_filter/puzzle_mgt.c
@@
-465,11
+465,9
@@
int puzzle_shuffle( filter_t *p_filter )
int puzzle_generate_rand_pce_list( filter_t *p_filter, int32_t **pi_pce_lst )
{
filter_sys_t *p_sys = p_filter->p_sys;
-
int32_t i_pieces_nbr = p_sys->s_allocated.i_pieces_nbr;
- if (pi_pce_lst != NULL )
- free( *pi_pce_lst );
+ free( *pi_pce_lst );
*pi_pce_lst = calloc( i_pieces_nbr, sizeof(**pi_pce_lst) );
if( !*pi_pce_lst )
return VLC_ENOMEM;