Commit 82fe23f2 authored by Nicolas Dufresne's avatar Nicolas Dufresne Committed by GStreamer Marge Bot
Browse files

rtpsink: 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 89fbcc71
......@@ -506,10 +506,8 @@ gst_rtp_sink_start (GstRtpSink * self)
dns_resolve_failed:
GST_ELEMENT_ERROR (self, RESOURCE, NOT_FOUND,
("Could not resolve hostname '%s'", GST_STR_NULL (remote_addr)),
("Could not resolve hostname '%s'", gst_uri_get_host (self->uri)),
("DNS resolver reported: %s", error->message));
g_free (remote_addr);
g_object_unref (iaddr);
g_error_free (error);
return FALSE;
}
......
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