From ca2e7bc8d77ea4fee8654e62f8e2df792109e626 Mon Sep 17 00:00:00 2001 From: Chris Pearce Date: Sun, 14 Dec 2008 04:15:18 +0100 Subject: [PATCH] Bug 469016 - Seeks after playback ended but before playback ended event are lost; r=chris.double sr=roc --- content/media/video/src/nsOggDecoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/media/video/src/nsOggDecoder.cpp b/content/media/video/src/nsOggDecoder.cpp index e5cf124a9373..1fef7e314550 100644 --- a/content/media/video/src/nsOggDecoder.cpp +++ b/content/media/video/src/nsOggDecoder.cpp @@ -1059,7 +1059,7 @@ nsresult nsOggDecodeStateMachine::Run() NS_DispatchToMainThread(event, NS_DISPATCH_NORMAL); do { mon.Wait(); - } while (mState != DECODER_STATE_SHUTDOWN); + } while (mState == DECODER_STATE_COMPLETED); } break; } @@ -1495,7 +1495,7 @@ PRBool nsOggDecoder::IsSeeking() const void nsOggDecoder::PlaybackEnded() { - if (mShuttingDown) + if (mShuttingDown || mPlayState == nsOggDecoder::PLAY_STATE_SEEKING) return; Stop();