[libgdata/libgdata-0-6] youtube: Fix the XML for aspect ratios



commit b25a0a48b3493885dc4101c7fe39e4d0d569b440
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sat Dec 11 00:40:17 2010 +0000

    youtube: Fix the XML for aspect ratios

 gdata/services/youtube/gdata-youtube-group.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdata/services/youtube/gdata-youtube-group.c b/gdata/services/youtube/gdata-youtube-group.c
index 54c1bf6..4eb5201 100644
--- a/gdata/services/youtube/gdata-youtube-group.c
+++ b/gdata/services/youtube/gdata-youtube-group.c
@@ -181,8 +181,8 @@ get_xml (GDataParsable *parsable, GString *xml_string)
 
 	if (priv->is_private == TRUE)
 		g_string_append (xml_string, "<yt:private/>");
-	if (priv->aspect_ratio != NULL)
-		gdata_parser_string_append_escaped (xml_string, "<yt:aspectratio>", priv->aspect_ratio, "</yt:aspectratio>");
+	if (priv->aspect_ratio == GDATA_YOUTUBE_ASPECT_RATIO_WIDESCREEN)
+		g_string_append (xml_string, "<yt:aspectratio>widescreen</yt:aspectratio>");
 }
 
 static void



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