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
Родитель 782a3e2eac
Коммит 30e7416a2a
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1076,7 +1076,7 @@ nsWaveDecoder::Load(nsIURI* aURI, nsIChannel* aChannel, nsIStreamListener** aStr
mStream = new nsMediaStream(); mStream = new nsMediaStream();
NS_ENSURE_TRUE(mStream, NS_ERROR_OUT_OF_MEMORY); 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); NS_ENSURE_SUCCESS(rv, rv);
rv = NS_NewThread(getter_AddRefs(mPlaybackThread)); rv = NS_NewThread(getter_AddRefs(mPlaybackThread));