mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
va: vpp: don't fetch video info from buffer
Instead of fetching video info from the buffer, use the already set ones. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1667>
This commit is contained in:
parent
64eb0f0ed2
commit
895fe44154
1 changed files with 4 additions and 5 deletions
|
@ -1071,7 +1071,6 @@ gst_va_vpp_transform (GstBaseTransform * trans, GstBuffer * inbuf,
|
||||||
GstVaVpp *self = GST_VA_VPP (trans);
|
GstVaVpp *self = GST_VA_VPP (trans);
|
||||||
GstBuffer *buf = NULL;
|
GstBuffer *buf = NULL;
|
||||||
GstFlowReturn res = GST_FLOW_OK;
|
GstFlowReturn res = GST_FLOW_OK;
|
||||||
GstVideoInfo in_info, out_info;
|
|
||||||
VASurfaceID in_surface, out_surface;
|
VASurfaceID in_surface, out_surface;
|
||||||
|
|
||||||
if (G_UNLIKELY (!self->negotiated))
|
if (G_UNLIKELY (!self->negotiated))
|
||||||
|
@ -1081,11 +1080,11 @@ gst_va_vpp_transform (GstBaseTransform * trans, GstBuffer * inbuf,
|
||||||
if (res != GST_FLOW_OK)
|
if (res != GST_FLOW_OK)
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
in_surface = gst_va_buffer_get_surface (buf, &in_info);
|
in_surface = gst_va_buffer_get_surface (buf, NULL);
|
||||||
out_surface = gst_va_buffer_get_surface (outbuf, &out_info);
|
out_surface = gst_va_buffer_get_surface (outbuf, NULL);
|
||||||
|
|
||||||
if (!gst_va_filter_convert_surface (self->filter, in_surface, &in_info,
|
if (!gst_va_filter_convert_surface (self->filter, in_surface, &self->in_info,
|
||||||
out_surface, &out_info)) {
|
out_surface, &self->out_info)) {
|
||||||
gst_buffer_set_flags (outbuf, GST_BUFFER_FLAG_CORRUPTED);
|
gst_buffer_set_flags (outbuf, GST_BUFFER_FLAG_CORRUPTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue