summaryrefslogtreecommitdiff
path: root/gst/rist
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2020-07-10 18:03:20 -0400
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-07-14 20:48:04 +0000
commit89fbcc71d96370c0edb06bdc3e71a48d340f1f12 (patch)
treeea4d99691569e6a73bc77c8b29a116537e618abb /gst/rist
parenta43d6f6cd9cf962838a1fdaafe4cb24509e8c8b1 (diff)
downloadgstreamer-plugins-bad-89fbcc71d96370c0edb06bdc3e71a48d340f1f12.tar.gz
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1433>
Diffstat (limited to 'gst/rist')
-rw-r--r--gst/rist/gstristsink.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gst/rist/gstristsink.c b/gst/rist/gstristsink.c
index 464b0719d..6622257c9 100644
--- a/gst/rist/gstristsink.c
+++ b/gst/rist/gstristsink.c
@@ -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;
}