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
This commit is contained in:
Aurélien Zanelli 2016-05-16 12:06:37 +02:00 committed by Thibault Saunier
parent df9921f470
commit dc16ee6c56
2 changed files with 2 additions and 2 deletions

View file

@ -521,7 +521,7 @@ ges_uri_clip_create_track_element (GESClip * clip, GESTrackType type)
* %NULL if there was an error. * %NULL if there was an error.
*/ */
GESUriClip * 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)); GESAsset *asset = GES_ASSET (ges_uri_clip_asset_request_sync (uri, NULL));
GESUriClip *res = NULL; GESUriClip *res = NULL;

View file

@ -82,7 +82,7 @@ gboolean ges_uri_clip_is_muted (GESUriClip * self);
gboolean ges_uri_clip_is_image (GESUriClip * self); gboolean ges_uri_clip_is_image (GESUriClip * self);
const gchar *ges_uri_clip_get_uri (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 G_END_DECLS