Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
42bb2362
Commit
42bb2362
authored
Jun 21, 2008
by
ivoire
Browse files
Remove unnedeeded msg_Error.
parent
b674dab8
Changes
38
Hide whitespace changes
Inline
Side-by-side
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
;
...
...
Prev
1
2
Next
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