From 744a8aaeb7999b479a90ad0f67d21209132e7963 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Wed, 8 Sep 2021 09:22:37 +0200 Subject: [PATCH] gst: init last_error Otherwise, it may be used uninitalized. --- src/gst/gstpipewirecore.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gst/gstpipewirecore.c b/src/gst/gstpipewirecore.c index d9d78d5f2..acfe17c47 100644 --- a/src/gst/gstpipewirecore.c +++ b/src/gst/gstpipewirecore.c @@ -73,6 +73,7 @@ static GstPipeWireCore *make_core (int fd) core->loop = pw_thread_loop_new ("pipewire-main-loop", NULL); core->context = pw_context_new (pw_thread_loop_get_loop(core->loop), NULL, 0); core->last_seq = -1; + core->last_error = 0; GST_DEBUG ("loop %p context %p", core->loop, core->context); if (pw_thread_loop_start (core->loop) < 0)