gst: init last_error

Otherwise, it may be used uninitalized.
This commit is contained in:
Michael Olbrich 2021-09-08 09:22:37 +02:00 committed by Wim Taymans
parent d4207d3b0c
commit 744a8aaeb7

View file

@ -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)