From d4caa1b3ae27815162a77410ef2da0d2673150b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 28 Jul 2020 11:27:37 +0100 Subject: [PATCH] camerabinpreview: fix potential crash on preview pipeline error Post error message on actual element, not the allocated helper struct. Part-of: --- gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c b/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c index 60c38f0823..2a46490c0b 100644 --- a/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c +++ b/gst-libs/gst/basecamerabinsrc/gstcamerabinpreview.c @@ -56,7 +56,7 @@ bus_callback (GstBus * bus, GstMessage * message, gpointer user_data) g_error_free (err); /* TODO Not sure if we should post an Error or Warning here */ - GST_ELEMENT_ERROR (data, CORE, FAILED, + GST_ELEMENT_ERROR (data->element, CORE, FAILED, ("fatal error in preview pipeline, disposing the pipeline"), (NULL)); /* Possible error situations: