fixed: cannot pass non-pod through varargs
authorspiff <spiff@xbmc.org>
Sat, 6 Apr 2013 10:35:37 +0000 (12:35 +0200)
committerspiff <spiff@xbmc.org>
Sat, 6 Apr 2013 10:46:58 +0000 (12:46 +0200)
xbmc/video/VideoDatabase.cpp

index 65ba900..e1314bc 100644 (file)
@@ -2040,7 +2040,7 @@ int CVideoDatabase::SetDetailsForMovie(const CStdString& strFilenameAndPath, con
     SetArtForItem(idMovie, "movie", artwork);
 
     // query DB for any movies matching imdbid and year
-    CStdString strSQL = PrepareSQL("files.playCount, files.lastPlayed from movie,files where files.idFile=movie.idFile and movie.c%02d='%s' and movie.c%02d=%i and movie.idMovie!=%i and files.playCount > 0", VIDEODB_ID_IDENT, details.m_strIMDBNumber, VIDEODB_ID_YEAR, details.m_iYear, idMovie);
+    CStdString strSQL = PrepareSQL("files.playCount, files.lastPlayed from movie,files where files.idFile=movie.idFile and movie.c%02d='%s' and movie.c%02d=%i and movie.idMovie!=%i and files.playCount > 0", VIDEODB_ID_IDENT, details.m_strIMDBNumber.c_str(), VIDEODB_ID_YEAR, details.m_iYear, idMovie);
     m_pDS->query(strSQL.c_str());
        
     if (!m_pDS->eof())