aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoakim Plate <elupus@ecce.se>2013-05-29 23:32:19 +0200
committerJoakim Plate <elupus@ecce.se>2013-05-31 20:06:03 +0200
commitcfa20713b78ebf4290b4c29327c449e19a82e6ef (patch)
tree4ffc071bd3d7c9e2417ab61031c46e2af3650537
parent763e2a340691fee07b012714bf80c616d44af41a (diff)
dvdplayer: AutoCrop before waiting for buffer
-rw-r--r--xbmc/cores/dvdplayer/DVDPlayerVideo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/xbmc/cores/dvdplayer/DVDPlayerVideo.cpp b/xbmc/cores/dvdplayer/DVDPlayerVideo.cpp
index f98c4a4a36..7a88db6816 100644
--- a/xbmc/cores/dvdplayer/DVDPlayerVideo.cpp
+++ b/xbmc/cores/dvdplayer/DVDPlayerVideo.cpp
@@ -1245,12 +1245,13 @@ int CDVDPlayerVideo::OutputPicture(const DVDVideoPicture* src, double pts)
mDisplayField = FS_BOT;
}
+ AutoCrop(pPicture);
+
int buffer = g_renderManager.WaitForBuffer(m_bStop, std::max(DVD_TIME_TO_MSEC(iSleepTime) + 500, 0));
if (buffer < 0)
return EOS_DROPPED;
ProcessOverlays(pPicture, pts);
- AutoCrop(pPicture);
int index = g_renderManager.AddVideoPicture(*pPicture);