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
42bb2362
Commit
42bb2362
authored
Jun 21, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnedeeded msg_Error.
parent
b674dab8
Changes
38
Hide whitespace changes
Inline
Side-by-side
Showing
38 changed files
with
4 additions
and
127 deletions
+4
-127
modules/video_filter/adjust.c
modules/video_filter/adjust.c
+0
-3
modules/video_filter/alphamask.c
modules/video_filter/alphamask.c
+0
-3
modules/video_filter/atmo/atmo.cpp
modules/video_filter/atmo/atmo.cpp
+0
-3
modules/video_filter/blend.c
modules/video_filter/blend.c
+1
-4
modules/video_filter/bluescreen.c
modules/video_filter/bluescreen.c
+0
-3
modules/video_filter/colorthres.c
modules/video_filter/colorthres.c
+0
-3
modules/video_filter/crop.c
modules/video_filter/crop.c
+0
-3
modules/video_filter/deinterlace.c
modules/video_filter/deinterlace.c
+0
-3
modules/video_filter/dynamicoverlay/dynamicoverlay.c
modules/video_filter/dynamicoverlay/dynamicoverlay.c
+0
-3
modules/video_filter/erase.c
modules/video_filter/erase.c
+0
-3
modules/video_filter/extract.c
modules/video_filter/extract.c
+0
-4
modules/video_filter/gaussianblur.c
modules/video_filter/gaussianblur.c
+0
-3
modules/video_filter/gradient.c
modules/video_filter/gradient.c
+0
-3
modules/video_filter/grain.c
modules/video_filter/grain.c
+0
-3
modules/video_filter/logo.c
modules/video_filter/logo.c
+0
-8
modules/video_filter/magnify.c
modules/video_filter/magnify.c
+0
-3
modules/video_filter/marq.c
modules/video_filter/marq.c
+0
-3
modules/video_filter/mosaic.c
modules/video_filter/mosaic.c
+0
-3
modules/video_filter/motionblur.c
modules/video_filter/motionblur.c
+0
-3
modules/video_filter/motiondetect.c
modules/video_filter/motiondetect.c
+0
-3
modules/video_filter/noise.c
modules/video_filter/noise.c
+0
-3
modules/video_filter/opencv_example.cpp
modules/video_filter/opencv_example.cpp
+1
-3
modules/video_filter/opencv_wrapper.c
modules/video_filter/opencv_wrapper.c
+0
-3
modules/video_filter/osdmenu.c
modules/video_filter/osdmenu.c
+0
-3
modules/video_filter/panoramix.c
modules/video_filter/panoramix.c
+0
-4
modules/video_filter/psychedelic.c
modules/video_filter/psychedelic.c
+0
-3
modules/video_filter/puzzle.c
modules/video_filter/puzzle.c
+0
-3
modules/video_filter/remoteosd.c
modules/video_filter/remoteosd.c
+0
-3
modules/video_filter/ripple.c
modules/video_filter/ripple.c
+0
-3
modules/video_filter/rotate.c
modules/video_filter/rotate.c
+0
-3
modules/video_filter/rss.c
modules/video_filter/rss.c
+0
-5
modules/video_filter/rv32.c
modules/video_filter/rv32.c
+1
-4
modules/video_filter/scale.c
modules/video_filter/scale.c
+1
-4
modules/video_filter/seamcarving.c
modules/video_filter/seamcarving.c
+0
-3
modules/video_filter/sharpen.c
modules/video_filter/sharpen.c
+0
-3
modules/video_filter/transform.c
modules/video_filter/transform.c
+0
-3
modules/video_filter/wall.c
modules/video_filter/wall.c
+0
-4
modules/video_filter/wave.c
modules/video_filter/wave.c
+0
-3
No files found.
modules/video_filter/adjust.c
View file @
42bb2362
...
...
@@ -155,10 +155,7 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
if
(
p_filter
->
p_sys
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_sys
=
p_filter
->
p_sys
;
/* needed to get options passed in transcode using the
...
...
modules/video_filter/alphamask.c
View file @
42bb2362
...
...
@@ -102,10 +102,7 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
if
(
p_filter
->
p_sys
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_sys
=
p_filter
->
p_sys
;
config_ChainParse
(
p_filter
,
CFG_PREFIX
,
ppsz_filter_options
,
...
...
modules/video_filter/atmo/atmo.cpp
View file @
42bb2362
...
...
@@ -1375,10 +1375,7 @@ static int CreateFilter( vlc_object_t *p_this )
p_sys
=
(
filter_sys_t
*
)
malloc
(
sizeof
(
filter_sys_t
)
);
p_filter
->
p_sys
=
p_sys
;
if
(
p_filter
->
p_sys
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory for p_sys structure"
);
return
VLC_ENOMEM
;
}
/* set all entries to zero */
memset
(
p_sys
,
0
,
sizeof
(
filter_sys_t
));
...
...
modules/video_filter/blend.c
View file @
42bb2362
...
...
@@ -134,10 +134,7 @@ static int OpenFilter( vlc_object_t *p_this )
/* Allocate the memory needed to store the decoder's structure */
if
(
(
p_filter
->
p_sys
=
p_sys
=
(
filter_sys_t
*
)
malloc
(
sizeof
(
filter_sys_t
))
)
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_EGENERIC
;
}
return
VLC_ENOMEM
;
/* Misc init */
p_filter
->
pf_video_blend
=
Blend
;
...
...
modules/video_filter/bluescreen.c
View file @
42bb2362
...
...
@@ -124,10 +124,7 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
if
(
p_filter
->
p_sys
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_sys
=
p_filter
->
p_sys
;
config_ChainParse
(
p_filter
,
CFG_PREFIX
,
ppsz_filter_options
,
...
...
modules/video_filter/colorthres.c
View file @
42bb2362
...
...
@@ -125,10 +125,7 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
if
(
p_filter
->
p_sys
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_filter
->
pf_video_filter
=
Filter
;
...
...
modules/video_filter/crop.c
View file @
42bb2362
...
...
@@ -183,10 +183,7 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_vout
->
p_sys
=
malloc
(
sizeof
(
vout_sys_t
)
);
if
(
p_vout
->
p_sys
==
NULL
)
{
msg_Err
(
p_vout
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_vout
->
pf_init
=
Init
;
p_vout
->
pf_end
=
End
;
...
...
modules/video_filter/deinterlace.c
View file @
42bb2362
...
...
@@ -192,10 +192,7 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_vout
->
p_sys
=
malloc
(
sizeof
(
vout_sys_t
)
);
if
(
p_vout
->
p_sys
==
NULL
)
{
msg_Err
(
p_vout
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_vout
->
pf_init
=
Init
;
p_vout
->
pf_end
=
End
;
...
...
modules/video_filter/dynamicoverlay/dynamicoverlay.c
View file @
42bb2362
...
...
@@ -94,10 +94,7 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
if
(
p_filter
->
p_sys
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_sys
=
p_filter
->
p_sys
;
BufferInit
(
&
p_sys
->
input
);
...
...
modules/video_filter/erase.c
View file @
42bb2362
...
...
@@ -146,10 +146,7 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
if
(
p_filter
->
p_sys
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_sys
=
p_filter
->
p_sys
;
p_filter
->
pf_video_filter
=
Filter
;
...
...
modules/video_filter/extract.c
View file @
42bb2362
...
...
@@ -127,15 +127,11 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
if
(
p_filter
->
p_sys
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_filter
->
p_sys
->
projection_matrix
=
malloc
(
9
*
sizeof
(
int
)
);
if
(
!
p_filter
->
p_sys
->
projection_matrix
)
{
free
(
p_filter
->
p_sys
);
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_ENOMEM
;
}
...
...
modules/video_filter/gaussianblur.c
View file @
42bb2362
...
...
@@ -152,10 +152,7 @@ static int Create( vlc_object_t *p_this )
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
if
(
p_filter
->
p_sys
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_ENOMEM
;
}
config_ChainParse
(
p_filter
,
FILTER_PREFIX
,
ppsz_filter_options
,
p_filter
->
p_cfg
);
...
...
modules/video_filter/gradient.c
View file @
42bb2362
...
...
@@ -146,10 +146,7 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
if
(
p_filter
->
p_sys
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_filter
->
pf_video_filter
=
Filter
;
...
...
modules/video_filter/grain.c
View file @
42bb2362
...
...
@@ -82,10 +82,7 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
if
(
p_filter
->
p_sys
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_filter
->
pf_video_filter
=
Filter
;
...
...
modules/video_filter/logo.c
View file @
42bb2362
...
...
@@ -315,14 +315,10 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_sys
=
p_vout
->
p_sys
=
malloc
(
sizeof
(
vout_sys_t
)
);
if
(
p_sys
==
NULL
)
{
msg_Err
(
p_vout
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_logo_list
=
p_sys
->
p_logo_list
=
malloc
(
sizeof
(
logo_list_t
)
);
if
(
p_logo_list
==
NULL
)
{
msg_Err
(
p_vout
,
"out of memory"
);
free
(
p_sys
);
return
VLC_ENOMEM
;
}
...
...
@@ -708,14 +704,10 @@ static int CreateFilter( vlc_object_t *p_this )
/* Allocate structure */
p_sys
=
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
if
(
p_sys
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_logo_list
=
p_sys
->
p_logo_list
=
malloc
(
sizeof
(
logo_list_t
)
);
if
(
p_logo_list
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
free
(
p_sys
);
return
VLC_ENOMEM
;
}
...
...
modules/video_filter/magnify.c
View file @
42bb2362
...
...
@@ -113,10 +113,7 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_vout
->
p_sys
=
malloc
(
sizeof
(
vout_sys_t
)
);
if
(
p_vout
->
p_sys
==
NULL
)
{
msg_Err
(
p_vout
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_vout
->
p_sys
->
p_image
=
image_HandlerCreate
(
p_vout
);
...
...
modules/video_filter/marq.c
View file @
42bb2362
...
...
@@ -199,10 +199,7 @@ static int CreateFilter( vlc_object_t *p_this )
/* Allocate structure */
p_sys
=
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
if
(
p_sys
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_sys
->
p_style
=
malloc
(
sizeof
(
text_style_t
)
);
memcpy
(
p_sys
->
p_style
,
&
default_text_style
,
sizeof
(
text_style_t
)
);
...
...
modules/video_filter/mosaic.c
View file @
42bb2362
...
...
@@ -295,10 +295,7 @@ static int CreateFilter( vlc_object_t *p_this )
/* Allocate structure */
p_sys
=
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
if
(
p_sys
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_filter
->
pf_sub_filter
=
Filter
;
...
...
modules/video_filter/motionblur.c
View file @
42bb2362
...
...
@@ -96,10 +96,7 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
if
(
p_filter
->
p_sys
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_filter
->
pf_video_filter
=
Filter
;
...
...
modules/video_filter/motiondetect.c
View file @
42bb2362
...
...
@@ -104,10 +104,7 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
if
(
p_filter
->
p_sys
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_filter
->
p_sys
->
p_oldpix
=
NULL
;
p_filter
->
p_sys
->
p_buf
=
NULL
;
...
...
modules/video_filter/noise.c
View file @
42bb2362
...
...
@@ -83,10 +83,7 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
if
(
p_filter
->
p_sys
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_filter
->
pf_video_filter
=
Filter
;
...
...
modules/video_filter/opencv_example.cpp
View file @
42bb2362
...
...
@@ -90,8 +90,7 @@ static int OpenFilter( vlc_object_t *p_this )
if
(
(
p_filter
->
p_sys
=
p_sys
=
(
filter_sys_t
*
)
malloc
(
sizeof
(
filter_sys_t
))
)
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_EGENERIC
;
return
VLC_ENOMEM
;
}
//init the video_filter_event_info_t struct
...
...
@@ -206,7 +205,6 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
if
(
NULL
==
(
p_filter
->
p_sys
->
event_info
.
p_region
=
(
video_filter_region_info_t
*
)
malloc
(
faces
->
total
*
sizeof
(
video_filter_region_info_t
))))
{
msg_Err
(
p_filter
,
"out of memory"
);
return
NULL
;
}
memset
(
p_filter
->
p_sys
->
event_info
.
p_region
,
0
,
faces
->
total
*
sizeof
(
video_filter_region_info_t
));
...
...
modules/video_filter/opencv_wrapper.c
View file @
42bb2362
...
...
@@ -191,10 +191,7 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_vout
->
p_sys
=
malloc
(
sizeof
(
vout_sys_t
)
);
if
(
p_vout
->
p_sys
==
NULL
)
{
msg_Err
(
p_vout
,
"out of memory"
);
return
VLC_ENOMEM
;
}
/* Init structure */
p_vout
->
p_sys
->
p_image
=
image_HandlerCreate
(
p_vout
);
...
...
modules/video_filter/osdmenu.c
View file @
42bb2362
...
...
@@ -184,10 +184,7 @@ static int CreateFilter ( vlc_object_t *p_this )
p_filter
->
p_sys
=
p_sys
=
(
filter_sys_t
*
)
malloc
(
sizeof
(
filter_sys_t
)
);
if
(
!
p_filter
->
p_sys
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_ENOMEM
;
}
memset
(
p_sys
,
0
,
sizeof
(
filter_sys_t
)
);
/* Populating struct */
...
...
modules/video_filter/panoramix.c
View file @
42bb2362
...
...
@@ -295,10 +295,7 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_vout
->
p_sys
=
malloc
(
sizeof
(
vout_sys_t
)
);
if
(
p_vout
->
p_sys
==
NULL
)
{
msg_Err
(
p_vout
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_vout
->
pf_init
=
Init
;
p_vout
->
pf_end
=
End
;
...
...
@@ -430,7 +427,6 @@ case VLC_FOURCC('c','y','u','v'): // packed by 2
sizeof
(
struct
vout_list_t
)
);
if
(
p_vout
->
p_sys
->
pp_vout
==
NULL
)
{
msg_Err
(
p_vout
,
"out of memory"
);
free
(
p_vout
->
p_sys
);
return
VLC_ENOMEM
;
}
...
...
modules/video_filter/psychedelic.c
View file @
42bb2362
...
...
@@ -87,10 +87,7 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
if
(
p_filter
->
p_sys
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_filter
->
pf_video_filter
=
Filter
;
...
...
modules/video_filter/puzzle.c
View file @
42bb2362
...
...
@@ -204,10 +204,7 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_vout
->
p_sys
=
malloc
(
sizeof
(
vout_sys_t
)
);
if
(
p_vout
->
p_sys
==
NULL
)
{
msg_Err
(
p_vout
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_vout
->
p_sys
->
p_image
=
image_HandlerCreate
(
p_vout
);
...
...
modules/video_filter/remoteosd.c
View file @
42bb2362
...
...
@@ -260,10 +260,7 @@ static int CreateFilter ( vlc_object_t *p_this )
p_filter
->
p_sys
=
p_sys
=
(
filter_sys_t
*
)
malloc
(
sizeof
(
filter_sys_t
)
);
if
(
!
p_filter
->
p_sys
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_ENOMEM
;
}
memset
(
p_sys
,
0
,
sizeof
(
filter_sys_t
)
);
/* Populating struct */
...
...
modules/video_filter/ripple.c
View file @
42bb2362
...
...
@@ -84,10 +84,7 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
if
(
p_filter
->
p_sys
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_filter
->
pf_video_filter
=
Filter
;
...
...
modules/video_filter/rotate.c
View file @
42bb2362
...
...
@@ -131,10 +131,7 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
if
(
p_filter
->
p_sys
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_sys
=
p_filter
->
p_sys
;
config_ChainParse
(
p_filter
,
FILTER_PREFIX
,
ppsz_filter_options
,
...
...
modules/video_filter/rss.c
View file @
42bb2362
...
...
@@ -241,10 +241,7 @@ static int CreateFilter( vlc_object_t *p_this )
/* Allocate structure */
p_sys
=
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
if
(
p_sys
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_ENOMEM
;
}
vlc_mutex_init
(
&
p_sys
->
lock
);
vlc_mutex_lock
(
&
p_sys
->
lock
);
...
...
@@ -267,7 +264,6 @@ static int CreateFilter( vlc_object_t *p_this )
p_sys
->
psz_marquee
=
(
char
*
)
malloc
(
p_sys
->
i_length
+
1
);
if
(
p_sys
->
psz_marquee
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
vlc_mutex_unlock
(
&
p_sys
->
lock
);
vlc_mutex_destroy
(
&
p_sys
->
lock
);
free
(
p_sys
);
...
...
@@ -278,7 +274,6 @@ static int CreateFilter( vlc_object_t *p_this )
p_sys
->
p_style
=
malloc
(
sizeof
(
text_style_t
));
if
(
p_sys
->
p_style
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
free
(
p_sys
->
psz_marquee
);
vlc_mutex_unlock
(
&
p_sys
->
lock
);
vlc_mutex_destroy
(
&
p_sys
->
lock
);
...
...
modules/video_filter/rv32.c
View file @
42bb2362
...
...
@@ -77,10 +77,7 @@ static int OpenFilter( vlc_object_t *p_this )
/* Allocate the memory needed to store the decoder's structure */
if
(
(
p_filter
->
p_sys
=
p_sys
=
(
filter_sys_t
*
)
malloc
(
sizeof
(
filter_sys_t
))
)
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_EGENERIC
;
}
return
VLC_ENOMEM
;
p_filter
->
pf_video_filter
=
Filter
;
...
...
modules/video_filter/scale.c
View file @
42bb2362
...
...
@@ -82,10 +82,7 @@ static int OpenFilter( vlc_object_t *p_this )
/* Allocate the memory needed to store the decoder's structure */
if
(
(
p_filter
->
p_sys
=
p_sys
=
(
filter_sys_t
*
)
malloc
(
sizeof
(
filter_sys_t
))
)
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_EGENERIC
;
}
return
VLC_ENOMEM
;
p_filter
->
pf_video_filter
=
Filter
;
...
...
modules/video_filter/seamcarving.c
View file @
42bb2362
...
...
@@ -84,10 +84,7 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
if
(
p_filter
->
p_sys
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_filter
->
pf_video_filter
=
Filter
;
p_filter
->
p_sys
->
p_energy
=
NULL
;
...
...
modules/video_filter/sharpen.c
View file @
42bb2362
...
...
@@ -121,10 +121,7 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
if
(
p_filter
->
p_sys
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_filter
->
pf_video_filter
=
Filter
;
...
...
modules/video_filter/transform.c
View file @
42bb2362
...
...
@@ -127,10 +127,7 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_vout
->
p_sys
=
malloc
(
sizeof
(
vout_sys_t
)
);
if
(
p_vout
->
p_sys
==
NULL
)
{
msg_Err
(
p_vout
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_vout
->
pf_init
=
Init
;
p_vout
->
pf_end
=
End
;
...
...
modules/video_filter/wall.c
View file @
42bb2362
...
...
@@ -147,10 +147,7 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_vout
->
p_sys
=
malloc
(
sizeof
(
vout_sys_t
)
);
if
(
p_vout
->
p_sys
==
NULL
)
{
msg_Err
(
p_vout
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_vout
->
pf_init
=
Init
;
p_vout
->
pf_end
=
End
;
...
...
@@ -177,7 +174,6 @@ static int Create( vlc_object_t *p_this )
sizeof
(
struct
vout_list_t
)
);
if
(
p_vout
->
p_sys
->
pp_vout
==
NULL
)
{
msg_Err
(
p_vout
,
"out of memory"
);
free
(
p_vout
->
p_sys
);
return
VLC_ENOMEM
;
}
...
...
modules/video_filter/wave.c
View file @
42bb2362
...
...
@@ -85,10 +85,7 @@ static int Create( vlc_object_t *p_this )
/* Allocate structure */
p_filter
->
p_sys
=
malloc
(
sizeof
(
filter_sys_t
)
);
if
(
p_filter
->
p_sys
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
return
VLC_ENOMEM
;
}
p_filter
->
pf_video_filter
=
Filter
;
...
...
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