Bug 1208371 - Forward input stream and track id on regular track changes for union streams. r=roc
authorAndreas Pehrson <pehrsons@gmail.com>
Tue, 05 Jan 2016 10:16:26 +0800
changeset 348442 62696c71c68042e0edbc8398650f5f3f011c3fe5
parent 348441 5b67e879cfaafc292f3bfad11dcfecf25d77eed3
child 348443 18b4e37daae69a6e4db060a69c53d351dc5bf30d
push id14828
push userpehrsons@gmail.com
push dateThu, 07 Apr 2016 12:57:27 +0000
reviewersroc
bugs1208371
milestone48.0a1
Bug 1208371 - Forward input stream and track id on regular track changes for union streams. r=roc MozReview-Commit-ID: 3JsDI3jsnBb
dom/media/TrackUnionStream.cpp
--- a/dom/media/TrackUnionStream.cpp
+++ b/dom/media/TrackUnionStream.cpp
@@ -298,17 +298,19 @@ TrackUnionStream::TrackUnionStream(DOMMe
                                std::min(inputTrackEndPoint, inputStart),
                                std::min(inputTrackEndPoint, inputEnd));
         }
       }
       ApplyTrackDisabling(outputTrack->GetID(), segment);
       for (uint32_t j = 0; j < mListeners.Length(); ++j) {
         MediaStreamListener* l = mListeners[j];
         l->NotifyQueuedTrackChanges(Graph(), outputTrack->GetID(),
-                                    outputStart, 0, *segment);
+                                    outputStart, 0, *segment,
+                                    map->mInputPort->GetSource(),
+                                    map->mInputTrackID);
       }
       for (TrackBound<MediaStreamTrackListener>& b : mTrackListeners) {
         if (b.mTrackID != outputTrack->GetID()) {
           continue;
         }
         b.mListener->NotifyQueuedChanges(Graph(), outputStart, *segment);
       }
       outputTrack->GetSegment()->AppendFrom(segment);