vah264dec: don't use allocation caps in output stateç

parent 74a99c96
Pipeline #154113 waiting for manual action with stages
in 30 seconds
......@@ -866,17 +866,6 @@ gst_va_h264_dec_negotiate (GstVideoDecoder * decoder)
GST_INFO_OBJECT (self, "Negotiated caps %" GST_PTR_FORMAT,
self->output_state->caps);
if (self->coded_width != self->display_width
|| self->coded_height != self->display_height) {
self->output_state->allocation_caps =
gst_caps_copy (self->output_state->caps);
gst_caps_set_simple (self->output_state->allocation_caps, "width",
G_TYPE_INT, self->coded_width, "height", G_TYPE_INT, self->coded_height,
NULL);
GST_INFO_OBJECT (self, "Allocation caps %" GST_PTR_FORMAT,
self->output_state->allocation_caps);
}
return GST_VIDEO_DECODER_CLASS (parent_class)->negotiate (decoder);
}
......@@ -1015,6 +1004,7 @@ gst_va_h264_dec_decide_allocation (GstVideoDecoder * decoder, GstQuery * query)
gst_buffer_pool_config_set_params (config, caps, size, min, max);
gst_buffer_pool_config_set_allocator (config, allocator, &params);
gst_buffer_pool_config_set_va_allocation_params (config, self->rt_format,
self->coded_width, self->coded_height,
VA_SURFACE_ATTRIB_USAGE_HINT_DECODER);
if (!gst_buffer_pool_set_config (pool, config))
return FALSE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment