From 3fd718f878056439191c37450574900e4a54e5e5 Mon Sep 17 00:00:00 2001 From: montellese Date: Tue, 9 Apr 2013 19:40:49 +0200 Subject: [PATCH] use tinyxml's Attribute() instead of QueryBoolAttribute() to stay compatible with tinyxml 2.5.x --- xbmc/playlists/SmartPlayList.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xbmc/playlists/SmartPlayList.cpp b/xbmc/playlists/SmartPlayList.cpp index 08205e30624e3..a169f36f4ee37 100644 --- a/xbmc/playlists/SmartPlayList.cpp +++ b/xbmc/playlists/SmartPlayList.cpp @@ -1446,8 +1446,8 @@ bool CSmartPlaylist::LoadFromXML(const TiXmlNode *root, const CStdString &encodi if (groupElement != NULL && groupElement->FirstChild() != NULL) { m_group = groupElement->FirstChild()->ValueStr(); - if (groupElement->QueryBoolAttribute("mixed", &m_groupMixed) != TIXML_SUCCESS) - m_groupMixed = false; + const char* mixed = groupElement->Attribute("mixed"); + m_groupMixed = mixed != NULL && StringUtils::EqualsNoCase(mixed, "true"); } // now any limits