mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-25 23:46:45 +00:00
audiosink, multisocketsink: Fix error leak during failures
https://bugzilla.gnome.org/show_bug.cgi?id=755143
This commit is contained in:
parent
2a1e046dd9
commit
060f0c21f2
2 changed files with 2 additions and 0 deletions
|
@ -480,6 +480,7 @@ thread_failed:
|
||||||
GST_ERROR_OBJECT (sink, "could not create thread %s", error->message);
|
GST_ERROR_OBJECT (sink, "could not create thread %s", error->message);
|
||||||
else
|
else
|
||||||
GST_ERROR_OBJECT (sink, "could not create thread for unknown reason");
|
GST_ERROR_OBJECT (sink, "could not create thread for unknown reason");
|
||||||
|
g_clear_error (&error);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -854,6 +854,7 @@ gst_multi_socket_sink_handle_client_write (GstMultiSocketSink * sink,
|
||||||
GST_LOG_OBJECT (sink, "write would block %p",
|
GST_LOG_OBJECT (sink, "write would block %p",
|
||||||
mhclient->handle.socket);
|
mhclient->handle.socket);
|
||||||
more = FALSE;
|
more = FALSE;
|
||||||
|
g_clear_error (&err);
|
||||||
} else {
|
} else {
|
||||||
goto write_error;
|
goto write_error;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue