diff --git a/gst-libs/gst/audio/gstaudiosink.c b/gst-libs/gst/audio/gstaudiosink.c index 0604f59161..ca2cedafaf 100644 --- a/gst-libs/gst/audio/gstaudiosink.c +++ b/gst-libs/gst/audio/gstaudiosink.c @@ -480,6 +480,7 @@ thread_failed: GST_ERROR_OBJECT (sink, "could not create thread %s", error->message); else GST_ERROR_OBJECT (sink, "could not create thread for unknown reason"); + g_clear_error (&error); return FALSE; } } diff --git a/gst/tcp/gstmultisocketsink.c b/gst/tcp/gstmultisocketsink.c index bc4e231422..d8e587b9ed 100644 --- a/gst/tcp/gstmultisocketsink.c +++ b/gst/tcp/gstmultisocketsink.c @@ -854,6 +854,7 @@ gst_multi_socket_sink_handle_client_write (GstMultiSocketSink * sink, GST_LOG_OBJECT (sink, "write would block %p", mhclient->handle.socket); more = FALSE; + g_clear_error (&err); } else { goto write_error; }