summaryrefslogtreecommitdiff
path: root/gst/rist/gstristsink.c
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2019-09-24 10:29:44 +1000
committerMatthew Waters <matthew@centricular.com>2019-09-24 10:29:44 +1000
commit67e4684932ab5ef2c037393645d0b913dda9c729 (patch)
tree14f3b0f53e477d841cd7e10c6521ef44b63dfc22 /gst/rist/gstristsink.c
parentce4f9ae53193d4de614e4fa26d4302e82bfc270a (diff)
downloadgstreamer-plugins-bad-67e4684932ab5ef2c037393645d0b913dda9c729.tar.gz
build: fix werror build with newer gcc
In file included from ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gstbin.h:27, from ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gst.h:35, from ../gst/rtp/gstrtpsink.h:23, from ../gst/rtp/gstrtpsink.c:49: In function ‘gst_rtp_sink_start’, inlined from ‘gst_rtp_sink_change_state’ at ../gst/rtp/gstrtpsink.c:509:11: ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gstelement.h:422:18: error: ‘%s’ directive argument is null [-Werror=format-overflow=] 422 | gchar *__txt = _gst_element_error_printf text; \ ../gst/rtp/gstrtpsink.c:476:3: note: in expansion of macro ‘GST_ELEMENT_ERROR’ 476 | GST_ELEMENT_ERROR (self, RESOURCE, NOT_FOUND, | ^~~~~~~~~~~~~~~~~ ../gst/rtp/gstrtpsink.c: In function ‘gst_rtp_sink_change_state’: ../gst/rtp/gstrtpsink.c:477:37: note: format string is defined here 477 | ("Could not resolve hostname '%s'", remote_addr), | ^~ In file included from ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gstbin.h:27, from ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gst.h:35, from ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/rtp/gstrtpdefs.h:27, from ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/rtp/rtp.h:25, from ../gst/rist/gstristsink.c:72: In function ‘gst_rist_sink_setup_rtcp_socket’, inlined from ‘gst_rist_sink_start’ at ../gst/rist/gstristsink.c:658:10, inlined from ‘gst_rist_sink_change_state’ at ../gst/rist/gstristsink.c:801:13: ../../../../dist/linux_x86_64/include/gstreamer-1.0/gst/gstelement.h:422:18: error: ‘%s’ directive argument is null [-Werror=format-overflow=] 422 | gchar *__txt = _gst_element_error_printf text; \ ../gst/rist/gstristsink.c:595:3: note: in expansion of macro ‘GST_ELEMENT_ERROR’ 595 | GST_ELEMENT_ERROR (sink, RESOURCE, NOT_FOUND, | ^~~~~~~~~~~~~~~~~ ../gst/rist/gstristsink.c: In function ‘gst_rist_sink_change_state’: ../gst/rist/gstristsink.c:596:37: note: format string is defined here 596 | ("Could not resolve hostname '%s'", remote_addr), | ^~
Diffstat (limited to 'gst/rist/gstristsink.c')
-rw-r--r--gst/rist/gstristsink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/rist/gstristsink.c b/gst/rist/gstristsink.c
index 140892ef1..08e165712 100644
--- a/gst/rist/gstristsink.c
+++ b/gst/rist/gstristsink.c
@@ -593,7 +593,7 @@ 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'", remote_addr),
+ ("Could not resolve hostname '%s'", GST_STR_NULL (remote_addr)),
("DNS resolver reported: %s", error->message));
g_free (remote_addr);
g_error_free (error);