mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
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), | ^~
This commit is contained in:
parent
ce4f9ae531
commit
67e4684932
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -474,7 +474,7 @@ gst_rtp_sink_start (GstRtpSink * self)
|
|||
|
||||
dns_resolve_failed:
|
||||
GST_ELEMENT_ERROR (self, 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);
|
||||
|
|
Loading…
Reference in a new issue