]> source.dussan.org Git - tigervnc.git/commitdiff
Goto time must be in the range 0 ... sessionTimeMs.
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Sun, 20 Feb 2005 03:25:47 +0000 (03:25 +0000)
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Sun, 20 Feb 2005 03:25:47 +0000 (03:25 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@199 3789f03b-4d11-0410-bbf8-ca57d06f2519

rfbplayer/rfbplayer.cxx

index 59d340202339c1f86e69e5bac15bf86bb9939e2e..1220f6be55abd8fe7b2dbf50f912244bf91e1674 100644 (file)
@@ -338,8 +338,9 @@ RfbPlayer::processMainMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
       {
         GotoPosDialog gotoPosDlg;
         if (gotoPosDlg.showDialog()) {
-          setPos(gotoPosDlg.getPos());
-          updatePos(gotoPosDlg.getPos());
+          long gotoTime = min(gotoPosDlg.getPos(), sessionTimeMs);
+          setPos(gotoTime);
+          updatePos(gotoTime);
         }
       }
       break;