Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
85fd0c6c
Commit
85fd0c6c
authored
Feb 03, 2016
by
Tristan Matthews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filter: canvas: add some error handling
parent
4522fbf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
modules/video_filter/canvas.c
modules/video_filter/canvas.c
+16
-2
No files found.
modules/video_filter/canvas.c
View file @
85fd0c6c
...
...
@@ -329,10 +329,24 @@ static int Activate( vlc_object_t *p_this )
filter_chain_Reset
(
p_sys
->
p_chain
,
&
p_filter
->
fmt_in
,
&
fmt
);
/* Append scaling module */
filter_chain_AppendFilter
(
p_sys
->
p_chain
,
NULL
,
NULL
,
NULL
,
NULL
);
if
(
!
filter_chain_AppendFilter
(
p_sys
->
p_chain
,
NULL
,
NULL
,
NULL
,
NULL
)
)
{
msg_Err
(
p_filter
,
"Could not append scaling filter"
);
free
(
p_sys
);
return
VLC_EGENERIC
;
}
/* Append croppadd module if we actually do cropping or padding instead of just scaling*/
if
(
i_padd
>
0
)
filter_chain_AppendFromString
(
p_sys
->
p_chain
,
psz_croppadd
);
{
if
(
!
filter_chain_AppendFromString
(
p_sys
->
p_chain
,
psz_croppadd
)
)
{
msg_Err
(
p_filter
,
"Could not append cropadd filter"
);
filter_chain_Delete
(
p_sys
->
p_chain
);
free
(
p_sys
);
return
VLC_EGENERIC
;
}
}
fmt
=
*
filter_chain_GetFmtOut
(
p_sys
->
p_chain
);
es_format_Copy
(
&
p_filter
->
fmt_out
,
&
fmt
);
...
...
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