diff options
author | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2021-02-17 18:55:14 +0100 |
---|---|---|
committer | GStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-02-20 17:03:43 +0000 |
commit | c6c71c0c0ce2974990378c893f96cfac92509e36 (patch) | |
tree | d6a907bdc5dfa575fa20f6f7f1aea6de054d0a87 /sys | |
parent | b7988b4de8e3539e779711b57915f172936f193a (diff) | |
download | gstreamer-plugins-bad-c6c71c0c0ce2974990378c893f96cfac92509e36.tar.gz |
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>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/va/gstvafilter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/va/gstvafilter.c b/sys/va/gstvafilter.c index c08589670..a37aa8135 100644 --- a/sys/va/gstvafilter.c +++ b/sys/va/gstvafilter.c @@ -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); |