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:
@@ -299,8 +299,8 @@ VideoView::SetSubTitle(const char* text)
|
|||||||
fSubtitleBitmap->SetText(text);
|
fSubtitleBitmap->SetText(text);
|
||||||
}
|
}
|
||||||
// TODO: Make smarter and invalidate only previous subtitle bitmap
|
// TODO: Make smarter and invalidate only previous subtitle bitmap
|
||||||
// region;
|
// region. Fix locking, too...
|
||||||
if (!fIsPlaying && LockLooper()) {
|
if (!fIsPlaying && LockLooperWithTimeout(1000) == B_OK) {
|
||||||
Invalidate();
|
Invalidate();
|
||||||
UnlockLooper();
|
UnlockLooper();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user