Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gst-plugins-good
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
George Kiagiadakis
gst-plugins-good
Commits
23e273ac
Commit
23e273ac
authored
Apr 15, 2014
by
Nicolas Dufresne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v4l2transform: Ensure output pool is configured
parent
026f79b5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
sys/v4l2/gstv4l2transform.c
sys/v4l2/gstv4l2transform.c
+12
-2
No files found.
sys/v4l2/gstv4l2transform.c
View file @
23e273ac
...
...
@@ -450,8 +450,18 @@ gst_v4l2_transform_prepare_output_buffer (GstBaseTransform * trans,
}
/* Ensure input internal pool is active */
if
(
!
gst_buffer_pool_is_active
(
pool
))
{
GstStructure
*
config
=
gst_buffer_pool_get_config
(
pool
);
gst_buffer_pool_config_set_params
(
config
,
self
->
incaps
,
self
->
v4l2output
->
sizeimage
,
2
,
2
);
/* There is no reason to refuse this config */
if
(
!
gst_buffer_pool_set_config
(
pool
,
config
))
goto
activate_failed
;
if
(
!
gst_buffer_pool_set_active
(
pool
,
TRUE
))
goto
activate_failed
;
}
GST_DEBUG_OBJECT
(
self
,
"Queue input buffer"
);
ret
=
gst_v4l2_buffer_pool_process
(
GST_V4L2_BUFFER_POOL
(
pool
),
inbuf
);
...
...
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