From c6eeead1e4d9dc0fdcd54ae0ee88f991c45856dd Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Thu, 8 Oct 2020 17:52:05 +0200 Subject: [PATCH] srt: Consume the error from gst_srt_object_write Instead of leaking it. Part-of: --- ext/srt/gstsrtsink.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/srt/gstsrtsink.c b/ext/srt/gstsrtsink.c index 9e7fe51..59e72f3 100644 --- a/ext/srt/gstsrtsink.c +++ b/ext/srt/gstsrtsink.c @@ -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; } -- 2.7.4