From 3c8424d9ae14204d40bdd50b78d275b844fc39d8 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 18 Oct 2013 08:58:05 +0100 Subject: [PATCH] net: Constify a parameter to gst_net_client_clock_new() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Even though this parameter is not used, it should be const to fit in with the coding standards for other similar parameters. Client code already passes in const strings under the expectation that they won’t be modified. https://bugzilla.gnome.org/show_bug.cgi?id=710442 --- libs/gst/net/gstnetclientclock.c | 2 +- libs/gst/net/gstnetclientclock.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/gst/net/gstnetclientclock.c b/libs/gst/net/gstnetclientclock.c index 7d9843f946..85fdaa5d95 100644 --- a/libs/gst/net/gstnetclientclock.c +++ b/libs/gst/net/gstnetclientclock.c @@ -487,7 +487,7 @@ gst_net_client_clock_stop (GstNetClientClock * self) * clock. */ GstClock * -gst_net_client_clock_new (gchar * name, const gchar * remote_address, +gst_net_client_clock_new (const gchar * name, const gchar * remote_address, gint remote_port, GstClockTime base_time) { /* FIXME: gst_net_client_clock_new() should be a thin wrapper for g_object_new() */ diff --git a/libs/gst/net/gstnetclientclock.h b/libs/gst/net/gstnetclientclock.h index 8e59807559..b7243f1109 100644 --- a/libs/gst/net/gstnetclientclock.h +++ b/libs/gst/net/gstnetclientclock.h @@ -70,7 +70,7 @@ struct _GstNetClientClockClass { GType gst_net_client_clock_get_type (void); -GstClock* gst_net_client_clock_new (gchar *name, const gchar *remote_address, +GstClock* gst_net_client_clock_new (const gchar *name, const gchar *remote_address, gint remote_port, GstClockTime base_time); G_END_DECLS