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: