summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2010-12-11 00:40:17 +0000
committerPhilip Withnall <philip@tecnocode.co.uk>2010-12-11 00:41:15 +0000
commitb25a0a48b3493885dc4101c7fe39e4d0d569b440 (patch)
tree502832066bb9dd8f09a8d4512fb7714302719fd5
parent62cf2ea6a20f30bc644527e491d0b9765ccdd832 (diff)
downloadlibgdata-b25a0a48b3493885dc4101c7fe39e4d0d569b440.tar.gz
youtube: Fix the XML for aspect ratios
-rw-r--r--gdata/services/youtube/gdata-youtube-group.c4
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 54c1bf6e..4eb52012 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