net: Constify a parameter to gst_net_client_clock_new()
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Fri, 18 Oct 2013 07:58:05 +0000 (08:58 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Fri, 18 Oct 2013 08:59:25 +0000 (09:59 +0100)
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
libs/gst/net/gstnetclientclock.h

index 7d9843f..85fdaa5 100644 (file)
@@ -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() */
index 8e59807..b7243f1 100644 (file)
@@ -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