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
46ffef79
Commit
46ffef79
authored
Apr 08, 2014
by
Nicolas Dufresne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v4l2object: Ensure size before configuring the pool
parent
5a61fb7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
sys/v4l2/gstv4l2object.c
sys/v4l2/gstv4l2object.c
+11
-11
No files found.
sys/v4l2/gstv4l2object.c
View file @
46ffef79
...
...
@@ -3128,6 +3128,17 @@ gst_v4l2_object_decide_allocation (GstV4l2Object * obj, GstQuery * query)
break
;
}
/* Size field is mandatory and we have no size if now using our own pool and
* downstream didn't provide one. */
if
(
size
==
0
)
{
GstVideoInfo
info
;
gst_video_info_init
(
&
info
);
gst_video_info_from_caps
(
&
info
,
caps
);
size
=
GST_VIDEO_INFO_SIZE
(
&
info
);
}
if
(
pool
)
{
GstStructure
*
config
;
...
...
@@ -3144,17 +3155,6 @@ gst_v4l2_object_decide_allocation (GstV4l2Object * obj, GstQuery * query)
gst_buffer_pool_set_config
(
pool
,
config
);
}
/* Size field is mandatory and we have no size if now using our own pool and
* downstream didn't provide one. */
if
(
size
==
0
)
{
GstVideoInfo
info
;
gst_video_info_init
(
&
info
);
gst_video_info_from_caps
(
&
info
,
caps
);
size
=
GST_VIDEO_INFO_SIZE
(
&
info
);
}
if
(
update
)
gst_query_set_nth_allocation_pool
(
query
,
0
,
pool
,
size
,
min
,
max
);
else
...
...
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