Bug 468992. Use stored mURI to reopen a WAVE stream after we've finished playing it. r+sr=roc

This commit is contained in:
Matthew Gregan 2008-12-12 21:43:36 +13:00
parent 782a3e2eac
commit 30e7416a2a

View File

@ -1076,7 +1076,7 @@ nsWaveDecoder::Load(nsIURI* aURI, nsIChannel* aChannel, nsIStreamListener** aStr
mStream = new nsMediaStream();
NS_ENSURE_TRUE(mStream, NS_ERROR_OUT_OF_MEMORY);
nsresult rv = mStream->Open(this, aURI, aChannel, aStreamListener);
nsresult rv = mStream->Open(this, mURI, aChannel, aStreamListener);
NS_ENSURE_SUCCESS(rv, rv);
rv = NS_NewThread(getter_AddRefs(mPlaybackThread));