Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
George Kiagiadakis
gst-plugins-good
Commits
7aed4a98
Commit
7aed4a98
authored
May 05, 2014
by
Nicolas Dufresne
Committed by
Nicolas Dufresne
May 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v4l2allocator: Add a method to read number of allocated group
parent
972cf809
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
sys/v4l2/gstv4l2allocator.c
sys/v4l2/gstv4l2allocator.c
+14
-0
sys/v4l2/gstv4l2allocator.h
sys/v4l2/gstv4l2allocator.h
+2
-0
No files found.
sys/v4l2/gstv4l2allocator.c
View file @
7aed4a98
...
...
@@ -1361,3 +1361,17 @@ gst_v4l2_allocator_reset_group (GstV4l2Allocator * allocator,
break
;
}
}
gsize
gst_v4l2_allocator_num_allocated
(
GstV4l2Allocator
*
allocator
)
{
gsize
num_allocated
;
GST_OBJECT_LOCK
(
allocator
);
num_allocated
=
allocator
->
count
;
GST_OBJECT_UNLOCK
(
allocator
);
return
num_allocated
;
}
sys/v4l2/gstv4l2allocator.h
View file @
7aed4a98
...
...
@@ -149,6 +149,8 @@ GstV4l2MemoryGroup* gst_v4l2_allocator_dqbuf (GstV4l2Allocator * alloc
void
gst_v4l2_allocator_reset_group
(
GstV4l2Allocator
*
allocator
,
GstV4l2MemoryGroup
*
group
);
gsize
gst_v4l2_allocator_num_allocated
(
GstV4l2Allocator
*
allocator
);
G_END_DECLS
#endif
/* __GST_V4L2_ALLOCATOR_H__ */
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