v4l2bufferpool: fix typo in flags
https://bugzilla.gnome.org/show_bug.cgi?id=739549
This commit is contained in:
parent
cde3ce38e1
commit
8fdfb58ec4
@ -61,8 +61,9 @@ G_DEFINE_TYPE (GstV4l2BufferPool, gst_v4l2_buffer_pool, GST_TYPE_BUFFER_POOL);
|
|||||||
|
|
||||||
enum _GstV4l2BufferPoolAcquireFlags
|
enum _GstV4l2BufferPoolAcquireFlags
|
||||||
{
|
{
|
||||||
GST_V4L2_POOL_ACQUIRE_FLAG_RESURECT = GST_BUFFER_POOL_ACQUIRE_FLAG_LAST,
|
GST_V4L2_BUFFER_POOL_ACQUIRE_FLAG_RESURRECT =
|
||||||
GST_V4L2_BUFFER_POOL_ACQUIRE_FAG_LAST
|
GST_BUFFER_POOL_ACQUIRE_FLAG_LAST,
|
||||||
|
GST_V4L2_BUFFER_POOL_ACQUIRE_FLAG_LAST
|
||||||
};
|
};
|
||||||
|
|
||||||
static void gst_v4l2_buffer_pool_release_buffer (GstBufferPool * bpool,
|
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");
|
GST_DEBUG_OBJECT (pool, "A buffer was lost, reallocating it");
|
||||||
|
|
||||||
params.flags =
|
params.flags =
|
||||||
(GstBufferPoolAcquireFlags) GST_V4L2_POOL_ACQUIRE_FLAG_RESURECT;
|
(GstBufferPoolAcquireFlags) GST_V4L2_BUFFER_POOL_ACQUIRE_FLAG_RESURRECT;
|
||||||
ret =
|
ret =
|
||||||
gst_buffer_pool_acquire_buffer (GST_BUFFER_POOL (pool), &buffer, ¶ms);
|
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");
|
GST_DEBUG_OBJECT (pool, "acquire");
|
||||||
|
|
||||||
/* If this is being called to resurect a lost buffer */
|
/* 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);
|
ret = pclass->acquire_buffer (bpool, buffer, params);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user