Bug 475369. Fix regression from bug 451958 in passing mSeeking and mOffset to nsChannelToPipeListener. r+sr=roc
authorChris Double <chris.double@double.co.nz>
Wed, 28 Jan 2009 22:27:09 +1300
changeset 24326 6739e046d870d9003f0faf56d4ed6d55ee5daef4
parent 24325 6dbc129ccd190ce863602828c9d1c8b3c4955f36
child 24327 777f55d55ccc0a6978a65ff7f7bb19890986475a
push id5007
push userrocallahan@mozilla.com
push dateWed, 28 Jan 2009 09:47:18 +0000
treeherdermozilla-central@42b8e2c66c5b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs475369, 451958
milestone1.9.2a1pre
Bug 475369. Fix regression from bug 451958 in passing mSeeking and mOffset to nsChannelToPipeListener. r+sr=roc
content/media/video/src/nsMediaStream.cpp
--- a/content/media/video/src/nsMediaStream.cpp
+++ b/content/media/video/src/nsMediaStream.cpp
@@ -489,17 +489,17 @@ nsresult nsHttpStreamStrategy::OpenInter
 {
   NS_ASSERTION(NS_IsMainThread(), "Only call on main thread");
   NS_ENSURE_TRUE(mChannel, NS_ERROR_NULL_POINTER);
 
   if (aStreamListener) {
     *aStreamListener = nsnull;
   }
 
-  mListener = new nsChannelToPipeListener(mDecoder);
+  mListener = new nsChannelToPipeListener(mDecoder, aOffset != 0, aOffset);
   NS_ENSURE_TRUE(mListener, NS_ERROR_OUT_OF_MEMORY);
 
   nsresult rv = mListener->Init();
   NS_ENSURE_SUCCESS(rv, rv);
   
   nsCOMPtr<nsIStreamListener> listener = do_QueryInterface(mListener);
 
   if (aStreamListener) {