From dc16ee6c56dee1dfd08c8c541e439a9d603e4ca8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aur=C3=A9lien=20Zanelli?= Date: Mon, 16 May 2016 12:06:37 +0200 Subject: [PATCH] uri-clip: make uri parameter of ges_uri_clip_new () const To avoid compiler warning when using const string to create a new GESUriClip as string is not modified and only passed to functions which take a const string. https://bugzilla.gnome.org/show_bug.cgi?id=766523 --- ges/ges-uri-clip.c | 2 +- ges/ges-uri-clip.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ges/ges-uri-clip.c b/ges/ges-uri-clip.c index 96c4cd9..0252d3d 100644 --- a/ges/ges-uri-clip.c +++ b/ges/ges-uri-clip.c @@ -521,7 +521,7 @@ ges_uri_clip_create_track_element (GESClip * clip, GESTrackType type) * %NULL if there was an error. */ GESUriClip * -ges_uri_clip_new (gchar * uri) +ges_uri_clip_new (const gchar * uri) { GESAsset *asset = GES_ASSET (ges_uri_clip_asset_request_sync (uri, NULL)); GESUriClip *res = NULL; diff --git a/ges/ges-uri-clip.h b/ges/ges-uri-clip.h index f1db8cb..cfe2479 100644 --- a/ges/ges-uri-clip.h +++ b/ges/ges-uri-clip.h @@ -82,7 +82,7 @@ gboolean ges_uri_clip_is_muted (GESUriClip * self); gboolean ges_uri_clip_is_image (GESUriClip * self); const gchar *ges_uri_clip_get_uri (GESUriClip * self); -GESUriClip* ges_uri_clip_new (gchar *uri); +GESUriClip* ges_uri_clip_new (const gchar *uri); G_END_DECLS -- 2.7.4