diff options
-rw-r--r-- | xbmc/video/VideoDatabase.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/xbmc/video/VideoDatabase.cpp b/xbmc/video/VideoDatabase.cpp index 7549839e1d..f166a12444 100644 --- a/xbmc/video/VideoDatabase.cpp +++ b/xbmc/video/VideoDatabase.cpp @@ -8280,7 +8280,9 @@ void CVideoDatabase::ExportToXML(const CStdString &path, bool singleFiles /* = f } } } - + } + if (singleFiles) + { xmlDoc.Clear(); TiXmlDeclaration decl("1.0", "UTF-8", "yes"); xmlDoc.InsertEndChild(decl); @@ -8376,7 +8378,9 @@ void CVideoDatabase::ExportToXML(const CStdString &path, bool singleFiles /* = f } } } - + } + if (singleFiles) + { xmlDoc.Clear(); TiXmlDeclaration decl("1.0", "UTF-8", "yes"); xmlDoc.InsertEndChild(decl); @@ -8485,7 +8489,9 @@ void CVideoDatabase::ExportToXML(const CStdString &path, bool singleFiles /* = f } } } - + } + if (singleFiles) + { xmlDoc.Clear(); TiXmlDeclaration decl("1.0", "UTF-8", "yes"); xmlDoc.InsertEndChild(decl); @@ -8586,7 +8592,9 @@ void CVideoDatabase::ExportToXML(const CStdString &path, bool singleFiles /* = f } } } - + } + if (singleFiles) + { xmlDoc.Clear(); TiXmlDeclaration decl("1.0", "UTF-8", "yes"); xmlDoc.InsertEndChild(decl); |