mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
vdpauvideopostprocess: fix resizing of output
This commit is contained in:
parent
525c7c3933
commit
0aa4d01c0f
1 changed files with 0 additions and 9 deletions
|
@ -232,20 +232,11 @@ gst_vdp_output_src_pad_alloc_with_caps (GstVdpOutputSrcPad * vdp_pad,
|
|||
if (ret != GST_FLOW_OK)
|
||||
return ret;
|
||||
|
||||
if (!gst_caps_is_equal_fixed (caps, GST_BUFFER_CAPS (*output_buf)))
|
||||
goto wrong_caps;
|
||||
|
||||
if (!GST_IS_VDP_OUTPUT_BUFFER (*output_buf))
|
||||
goto invalid_buf;
|
||||
|
||||
return GST_FLOW_OK;
|
||||
|
||||
wrong_caps:
|
||||
gst_buffer_unref (GST_BUFFER (*output_buf));
|
||||
g_set_error (error, GST_STREAM_ERROR, GST_STREAM_ERROR_FAILED,
|
||||
"Sink element returned buffer with wrong caps");
|
||||
return GST_FLOW_ERROR;
|
||||
|
||||
invalid_buf:
|
||||
gst_buffer_unref (GST_BUFFER (*output_buf));
|
||||
g_set_error (error, GST_STREAM_ERROR, GST_STREAM_ERROR_FAILED,
|
||||
|
|
Loading…
Reference in a new issue