va: filter: fail immediately if vaBeginPicture() fails

There's no need to try vaRenderPicture() if vaBeginPicture() failed.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2023>
This commit is contained in:
Víctor Manuel Jáquez Leal 2021-02-17 18:55:14 +01:00 committed by GStreamer Merge Bot
parent b7988b4de8
commit c6c71c0c0c

View file

@ -1075,7 +1075,7 @@ gst_va_filter_convert_surface (GstVaFilter * self, VASurfaceID in_surface,
gst_va_display_unlock (self->display);
if (status != VA_STATUS_SUCCESS) {
GST_ERROR_OBJECT (self, "vaBeginPicture: %s", vaErrorStr (status));
goto fail_end_pic;
return FALSE;
}
gst_va_display_lock (self->display);