Backed out changeset c1351e1799b8
authorMatthew Gregan <kinetik@flim.org>
Mon, 15 Nov 2010 12:49:37 +1300
changeset 57492 f5865a11a2786c853ea8deecbb98c28bce273fa7
parent 57486 c1351e1799b8f0aa39c55263755367b452312217
child 57493 4988b81e8474e31586839c6c618eeaac462144a3
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
milestone2.0b8pre
backs outc1351e1799b8f0aa39c55263755367b452312217
Backed out changeset c1351e1799b8
content/media/wave/nsWaveDecoder.cpp
--- a/content/media/wave/nsWaveDecoder.cpp
+++ b/content/media/wave/nsWaveDecoder.cpp
@@ -1452,17 +1452,16 @@ nsWaveDecoder::PlaybackEnded()
 {
   if (mShuttingDown) {
     return;
   }
 
   if (!mPlaybackStateMachine->IsEnded()) {
     return;
   }
-  mEnded = PR_TRUE;
 
   // Update ready state; now that we've finished playback, we should
   // switch to HAVE_CURRENT_DATA.
   UpdateReadyStateForData();
   if (mElement) {
     mElement->PlaybackEnded();
   }
 }
@@ -1508,16 +1507,19 @@ nsWaveDecoder::IsSeeking() const
     return mPlaybackStateMachine->IsSeeking();
   }
   return PR_FALSE;
 }
 
 PRBool
 nsWaveDecoder::IsEnded() const
 {
+  if (mPlaybackStateMachine) {
+    return mPlaybackStateMachine->IsEnded();
+  }
   return mEnded;
 }
 
 nsMediaDecoder::Statistics
 nsWaveDecoder::GetStatistics()
 {
   if (!mPlaybackStateMachine)
     return Statistics();