From: Philip Withnall Date: Fri, 18 Oct 2013 07:58:05 +0000 (+0100) Subject: net: Constify a parameter to gst_net_client_clock_new() X-Git-Tag: 1.3.1~372 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c8424d9ae14204d40bdd50b78d275b844fc39d8;p=platform%2Fupstream%2Fgstreamer.git net: Constify a parameter to gst_net_client_clock_new() 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 --- diff --git a/libs/gst/net/gstnetclientclock.c b/libs/gst/net/gstnetclientclock.c index 7d9843f..85fdaa5 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 8e59807..b7243f1 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