[grilo-plugins] youtube: Fix variable shadowing a parameter



commit c01aeed311a813bacb56daff9876125417250df0
Author: Philip Withnall <philip tecnocode co uk>
Date:   Mon Jul 4 22:56:05 2011 +0100

    youtube: Fix variable shadowing a parameter

 src/media/youtube/grl-youtube.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/media/youtube/grl-youtube.c b/src/media/youtube/grl-youtube.c
index 5dd66aa..412edc4 100644
--- a/src/media/youtube/grl-youtube.c
+++ b/src/media/youtube/grl-youtube.c
@@ -605,9 +605,9 @@ build_media_from_entry (GrlYoutubeSource *source,
 	gdata_youtube_video_look_up_content (video,
 					     "application/x-shockwave-flash");
       if (youtube_content != NULL) {
-	GDataMediaContent *content = GDATA_MEDIA_CONTENT (youtube_content);
-	grl_media_set_external_player (media,
-				       gdata_media_content_get_uri (content));
+        const gchar *uri =
+          gdata_media_content_get_uri (GDATA_MEDIA_CONTENT (youtube_content));
+	grl_media_set_external_player (media, uri);
       }
     }
     iter = g_list_next (iter);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]