Commit 590408ef authored by servolk's avatar servolk Committed by Commit bot

Use trackInfo.id instead of bytestream id for blink tracks

Review-Url: https://codereview.chromium.org/2113173002
Cr-Commit-Position: refs/heads/master@{#403377}
parent 47eba7dd
...@@ -790,7 +790,7 @@ bool SourceBuffer::initializationSegmentReceived(const WebVector<MediaTrackInfo> ...@@ -790,7 +790,7 @@ bool SourceBuffer::initializationSegmentReceived(const WebVector<MediaTrackInfo>
const auto& kind = trackInfo.kind; const auto& kind = trackInfo.kind;
// 5.2.7 TODO(servolk): Implement track kind processing. // 5.2.7 TODO(servolk): Implement track kind processing.
// 5.2.8.2 Let new audio track be a new AudioTrack object. // 5.2.8.2 Let new audio track be a new AudioTrack object.
AudioTrack* audioTrack = AudioTrack::create(byteStreamTrackID, kind, label, language, false); AudioTrack* audioTrack = AudioTrack::create(trackInfo.id, kind, label, language, false);
SourceBufferTrackBaseSupplement::setSourceBuffer(*audioTrack, this); SourceBufferTrackBaseSupplement::setSourceBuffer(*audioTrack, this);
// 5.2.8.7 If audioTracks.length equals 0, then run the following steps: // 5.2.8.7 If audioTracks.length equals 0, then run the following steps:
if (audioTracks().length() == 0) { if (audioTracks().length() == 0) {
...@@ -827,7 +827,7 @@ bool SourceBuffer::initializationSegmentReceived(const WebVector<MediaTrackInfo> ...@@ -827,7 +827,7 @@ bool SourceBuffer::initializationSegmentReceived(const WebVector<MediaTrackInfo>
const auto& kind = trackInfo.kind; const auto& kind = trackInfo.kind;
// 5.3.7 TODO(servolk): Implement track kind processing. // 5.3.7 TODO(servolk): Implement track kind processing.
// 5.3.8.2 Let new video track be a new VideoTrack object. // 5.3.8.2 Let new video track be a new VideoTrack object.
VideoTrack* videoTrack = VideoTrack::create(byteStreamTrackID, kind, label, language, false); VideoTrack* videoTrack = VideoTrack::create(trackInfo.id, kind, label, language, false);
SourceBufferTrackBaseSupplement::setSourceBuffer(*videoTrack, this); SourceBufferTrackBaseSupplement::setSourceBuffer(*videoTrack, this);
// 5.3.8.7 If videoTracks.length equals 0, then run the following steps: // 5.3.8.7 If videoTracks.length equals 0, then run the following steps:
if (videoTracks().length() == 0) { if (videoTracks().length() == 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment