mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 13:21:28 +00:00
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:
parent
b7988b4de8
commit
c6c71c0c0c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue