Commit 89fbcc71 authored by Nicolas Dufresne's avatar Nicolas Dufresne Committed by GStreamer Merge Bot

ristsink: Fix error handling on bad DNS

This will properly print the DNS being attempted to resolved and avoid
trying to unref a NULL pointer.

Part-of: <!1433>
parent a43d6f6c
......@@ -700,10 +700,8 @@ gst_rist_sink_setup_rtcp_socket (GstRistSink * sink, RistSenderBond * bond)
dns_resolve_failed:
GST_ELEMENT_ERROR (sink, RESOURCE, NOT_FOUND,
("Could not resolve hostname '%s'", GST_STR_NULL (remote_addr)),
("Could not resolve hostname '%s'", GST_STR_NULL (bond->address)),
("DNS resolver reported: %s", error->message));
g_free (remote_addr);
g_object_unref (iaddr);
g_error_free (error);
return GST_STATE_CHANGE_FAILURE;
}
......
Markdown is supported
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