ignore the forced_aspect hint if aspect is 0 when extracting video frames. Fixes...
authorJonathan Marshall <jmarshall@never.you.mind>
Fri, 16 Mar 2012 23:24:28 +0000 (12:24 +1300)
committerJonathan Marshall <jmarshall@never.you.mind>
Fri, 16 Mar 2012 23:24:28 +0000 (12:24 +1300)
xbmc/cores/dvdplayer/DVDFileInfo.cpp

index 064a76b..3235fb8 100644 (file)
@@ -203,7 +203,7 @@ bool CDVDFileInfo::ExtractThumb(const CStdString &strPath, const CStdString &str
           {
             int nWidth = g_advancedSettings.m_thumbSize;
             double aspect = (double)picture.iDisplayWidth / (double)picture.iDisplayHeight;
-            if(hint.forced_aspect)
+            if(hint.forced_aspect && hint.aspect != 0)
               aspect = hint.aspect;
             int nHeight = (int)((double)g_advancedSettings.m_thumbSize / aspect);