Bug 856361. Part 10: Address review comments.

This commit is contained in:
Robert O'Callahan 2013-08-07 15:42:43 +12:00
parent 0c0594a7e4
commit d47e0a1048
2 changed files with 5 additions and 1 deletions

View File

@ -620,7 +620,6 @@ void MediaDecoderStateMachine::SendStreamData()
return;
if (!mDecoder->IsSameOriginMedia()) {
printf("MediaDecoderStateMachine::SendStreamData Same-origin check failed (decoder %p)!!!\n", mDecoder.get());
return;
}

View File

@ -298,6 +298,11 @@ protected:
if (inputStartTicks < 0) {
// Data before the start of the track is just null.
// We have to add a small amount of delay to ensure that there is
// always a sample available if we see an interval that contains a
// tick boundary on the output stream's timeline but does not contain
// a tick boundary on the input stream's timeline. 1 tick delay is
// necessary and sufficient.
segment->AppendNullData(-inputStartTicks);
inputStartTicks = 0;
}