From 424c4f3bdfec62eac74b13cf3bdb6762d2a07142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Mon, 27 Sep 2010 20:44:17 +0000 Subject: [PATCH] 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 --- src/apps/mediaplayer/VideoView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/mediaplayer/VideoView.cpp b/src/apps/mediaplayer/VideoView.cpp index 96f65656a9..cc20482054 100644 --- a/src/apps/mediaplayer/VideoView.cpp +++ b/src/apps/mediaplayer/VideoView.cpp @@ -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(); }