Fixed dead-lock when seeking with the video paused. Should come

up with something better...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38830 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2010-09-27 20:44:17 +00:00
parent ec646de243
commit 424c4f3bdf

View File

@ -299,8 +299,8 @@ VideoView::SetSubTitle(const char* text)
fSubtitleBitmap->SetText(text);
}
// TODO: Make smarter and invalidate only previous subtitle bitmap
// region;
if (!fIsPlaying && LockLooper()) {
// region. Fix locking, too...
if (!fIsPlaying && LockLooperWithTimeout(1000) == B_OK) {
Invalidate();
UnlockLooper();
}