Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCasimir666 <casimir666@users.sourceforge.net>2007-05-05 16:56:00 +0400
committerCasimir666 <casimir666@users.sourceforge.net>2007-05-05 16:56:00 +0400
commitc0acfd8d64c77602ed63b79251c4278be1afef02 (patch)
treeae25ef44682738de66fd40f9f717156b04f68e64 /src/apps/mplayerc/PlayerSubresyncBar.cpp
parent61792e42f6623d4164d418e7d507e6d296851d3c (diff)
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@67 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/PlayerSubresyncBar.cpp')
-rw-r--r--src/apps/mplayerc/PlayerSubresyncBar.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/apps/mplayerc/PlayerSubresyncBar.cpp b/src/apps/mplayerc/PlayerSubresyncBar.cpp
index b5ce9ab1b..2287d6127 100644
--- a/src/apps/mplayerc/PlayerSubresyncBar.cpp
+++ b/src/apps/mplayerc/PlayerSubresyncBar.cpp
@@ -1304,6 +1304,7 @@ int CPlayerSubresyncBar::FindNearestSub(__int64& rtPos, bool bForward)
{
long lCurTime = rtPos / 10000 + (bForward ? 1 : -1);
+ if (m_subtimes.GetCount() == 0) return -1;
if (lCurTime < m_subtimes[0].newstart)
{
rtPos = m_subtimes[0].newstart * 10000;