Author: stippi Date: 2010-09-27 22:44:17 +0200 (Mon, 27 Sep 2010) New Revision: 38830 Changeset: http://dev.haiku-os.org/changeset/38830 Modified: haiku/trunk/src/apps/mediaplayer/VideoView.cpp Log: Fixed dead-lock when seeking with the video paused. Should come up with something better... Modified: haiku/trunk/src/apps/mediaplayer/VideoView.cpp =================================================================== --- haiku/trunk/src/apps/mediaplayer/VideoView.cpp 2010-09-27 20:43:31 UTC (rev 38829) +++ haiku/trunk/src/apps/mediaplayer/VideoView.cpp 2010-09-27 20:44:17 UTC (rev 38830) @@ -299,8 +299,8 @@ 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(); }