Commit c6c71c0c authored by Víctor Manuel Jáquez Leal's avatar Víctor Manuel Jáquez Leal Committed by GStreamer Marge Bot

va: filter: fail immediately if vaBeginPicture() fails

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

Part-of: <!2023>
parent b7988b4d
...@@ -1075,7 +1075,7 @@ gst_va_filter_convert_surface (GstVaFilter * self, VASurfaceID in_surface, ...@@ -1075,7 +1075,7 @@ gst_va_filter_convert_surface (GstVaFilter * self, VASurfaceID in_surface,
gst_va_display_unlock (self->display); gst_va_display_unlock (self->display);
if (status != VA_STATUS_SUCCESS) { if (status != VA_STATUS_SUCCESS) {
GST_ERROR_OBJECT (self, "vaBeginPicture: %s", vaErrorStr (status)); GST_ERROR_OBJECT (self, "vaBeginPicture: %s", vaErrorStr (status));
goto fail_end_pic; return FALSE;
} }
gst_va_display_lock (self->display); gst_va_display_lock (self->display);
......
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