Commit c6eeead1 authored by Jan Alexander Steffens's avatar Jan Alexander Steffens Committed by GStreamer Marge Bot
Browse files

srt: Consume the error from gst_srt_object_write

Instead of leaking it.

Part-of: <gstreamer/gst-plugins-bad!1668>
parent 2a7fa676
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment