mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-13 03:24:14 +00:00
srt: Consume the error from gst_srt_object_write
Instead of leaking it. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1668>
This commit is contained in:
parent
2a7fa67693
commit
c6eeead1e4
1 changed files with 4 additions and 0 deletions
|
@ -178,6 +178,10 @@ gst_srt_sink_render (GstBaseSink * sink, GstBuffer * buffer)
|
|||
|
||||
if (gst_srt_object_write (self->srtobject, self->headers, &info,
|
||||
self->cancellable, &error) < 0) {
|
||||
GST_ELEMENT_ERROR (self, RESOURCE, WRITE,
|
||||
("Failed to write to SRT socket: %s",
|
||||
error ? error->message : "Unknown error"), (NULL));
|
||||
g_clear_error (&error);
|
||||
ret = GST_FLOW_ERROR;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue