update for allocation query changes
This commit is contained in:
parent
91d97d31e2
commit
77813e67e1
@ -349,7 +349,7 @@ gst_aasink_propose_allocation (GstBaseSink * bsink, GstQuery * query)
|
|||||||
gst_query_add_allocation_pool (query, NULL, size, 2, 0);
|
gst_query_add_allocation_pool (query, NULL, size, 2, 0);
|
||||||
|
|
||||||
/* we support various metadata */
|
/* we support various metadata */
|
||||||
gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE);
|
gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE, 0);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
|
@ -533,7 +533,7 @@ invalid_frame:
|
|||||||
static gboolean
|
static gboolean
|
||||||
gst_jpegenc_propose_allocation (GstVideoEncoder * encoder, GstQuery * query)
|
gst_jpegenc_propose_allocation (GstVideoEncoder * encoder, GstQuery * query)
|
||||||
{
|
{
|
||||||
gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE);
|
gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE, 0);
|
||||||
|
|
||||||
return GST_VIDEO_ENCODER_CLASS (parent_class)->propose_allocation (encoder,
|
return GST_VIDEO_ENCODER_CLASS (parent_class)->propose_allocation (encoder,
|
||||||
query);
|
query);
|
||||||
|
@ -371,7 +371,7 @@ longjmp_fail:
|
|||||||
static gboolean
|
static gboolean
|
||||||
gst_pngenc_propose_allocation (GstVideoEncoder * encoder, GstQuery * query)
|
gst_pngenc_propose_allocation (GstVideoEncoder * encoder, GstQuery * query)
|
||||||
{
|
{
|
||||||
gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE);
|
gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE, 0);
|
||||||
|
|
||||||
return GST_VIDEO_ENCODER_CLASS (parent_class)->propose_allocation (encoder,
|
return GST_VIDEO_ENCODER_CLASS (parent_class)->propose_allocation (encoder,
|
||||||
query);
|
query);
|
||||||
|
@ -653,8 +653,8 @@ gst_v4l2sink_propose_allocation (GstBaseSink * bsink, GstQuery * query)
|
|||||||
gst_query_add_allocation_pool (query, pool, size, 2, 0);
|
gst_query_add_allocation_pool (query, pool, size, 2, 0);
|
||||||
|
|
||||||
/* we also support various metadata */
|
/* we also support various metadata */
|
||||||
gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE);
|
gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE, 0);
|
||||||
gst_query_add_allocation_meta (query, GST_VIDEO_CROP_META_API_TYPE);
|
gst_query_add_allocation_meta (query, GST_VIDEO_CROP_META_API_TYPE, 0);
|
||||||
|
|
||||||
if (pool)
|
if (pool)
|
||||||
gst_object_unref (pool);
|
gst_object_unref (pool);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user