summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2021-02-17 18:55:14 +0100
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-02-20 17:03:43 +0000
commitc6c71c0c0ce2974990378c893f96cfac92509e36 (patch)
treed6a907bdc5dfa575fa20f6f7f1aea6de054d0a87 /sys
parentb7988b4de8e3539e779711b57915f172936f193a (diff)
downloadgstreamer-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.c2
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);