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
a89986eb
Commit
a89986eb
authored
Apr 15, 2014
by
Nicolas Dufresne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v4l2videodec: Ensure pool is configured
parent
83f053e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
sys/v4l2/gstv4l2videodec.c
sys/v4l2/gstv4l2videodec.c
+14
-3
No files found.
sys/v4l2/gstv4l2videodec.c
View file @
a89986eb
...
...
@@ -467,8 +467,19 @@ gst_v4l2_video_dec_handle_frame (GstVideoDecoder * decoder,
frame
->
input_buffer
=
NULL
;
}
if
(
!
gst_buffer_pool_set_active
(
pool
,
TRUE
))
goto
activate_failed
;
/* 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
->
input_state
->
caps
,
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_VIDEO_DECODER_STREAM_UNLOCK
(
decoder
);
gst_v4l2_object_unlock_stop
(
self
->
v4l2output
);
...
...
@@ -552,7 +563,7 @@ not_negotiated:
activate_failed:
{
GST_ELEMENT_ERROR
(
self
,
RESOURCE
,
SETTINGS
,
(
_
(
"Failed to allocate
d
required memory."
)),
(
_
(
"Failed to allocate required memory."
)),
(
"Buffer pool activation failed"
));
return
GST_FLOW_ERROR
;
}
...
...
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