mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
v4l2bufferpool: fix typo in flags
https://bugzilla.gnome.org/show_bug.cgi?id=739549
This commit is contained in:
parent
cde3ce38e1
commit
8fdfb58ec4
1 changed files with 5 additions and 4 deletions
|
@ -61,8 +61,9 @@ G_DEFINE_TYPE (GstV4l2BufferPool, gst_v4l2_buffer_pool, GST_TYPE_BUFFER_POOL);
|
|||
|
||||
enum _GstV4l2BufferPoolAcquireFlags
|
||||
{
|
||||
GST_V4L2_POOL_ACQUIRE_FLAG_RESURECT = GST_BUFFER_POOL_ACQUIRE_FLAG_LAST,
|
||||
GST_V4L2_BUFFER_POOL_ACQUIRE_FAG_LAST
|
||||
GST_V4L2_BUFFER_POOL_ACQUIRE_FLAG_RESURRECT =
|
||||
GST_BUFFER_POOL_ACQUIRE_FLAG_LAST,
|
||||
GST_V4L2_BUFFER_POOL_ACQUIRE_FLAG_LAST
|
||||
};
|
||||
|
||||
static void gst_v4l2_buffer_pool_release_buffer (GstBufferPool * bpool,
|
||||
|
@ -596,7 +597,7 @@ gst_v4l2_buffer_pool_group_released (GstV4l2BufferPool * pool)
|
|||
GST_DEBUG_OBJECT (pool, "A buffer was lost, reallocating it");
|
||||
|
||||
params.flags =
|
||||
(GstBufferPoolAcquireFlags) GST_V4L2_POOL_ACQUIRE_FLAG_RESURECT;
|
||||
(GstBufferPoolAcquireFlags) GST_V4L2_BUFFER_POOL_ACQUIRE_FLAG_RESURRECT;
|
||||
ret =
|
||||
gst_buffer_pool_acquire_buffer (GST_BUFFER_POOL (pool), &buffer, ¶ms);
|
||||
|
||||
|
@ -1150,7 +1151,7 @@ gst_v4l2_buffer_pool_acquire_buffer (GstBufferPool * bpool, GstBuffer ** buffer,
|
|||
GST_DEBUG_OBJECT (pool, "acquire");
|
||||
|
||||
/* If this is being called to resurect a lost buffer */
|
||||
if (params && params->flags & GST_V4L2_POOL_ACQUIRE_FLAG_RESURECT) {
|
||||
if (params && params->flags & GST_V4L2_BUFFER_POOL_ACQUIRE_FLAG_RESURRECT) {
|
||||
ret = pclass->acquire_buffer (bpool, buffer, params);
|
||||
goto done;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue