Chromium Code Reviews

Unified Diff: media/base/android/media_decoder_job.cc

Issue 1285733002: Pass buffer offset to PlayOutputBuffer() call (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: media/base/android/media_decoder_job.cc
diff --git a/media/base/android/media_decoder_job.cc b/media/base/android/media_decoder_job.cc
index af8ecb4dfc8b764199e6fd7f1ff6eaa3896791c4..a1e86067e84b1510f4c549a7eceb895d72027f6b 100644
--- a/media/base/android/media_decoder_job.cc
+++ b/media/base/android/media_decoder_job.cc
@@ -495,6 +495,7 @@ void MediaDecoderJob::DecodeInternal(
base::Bind(&MediaDecoderJob::ReleaseOutputBuffer,
base::Unretained(this),
buffer_index,
+ offset,
size,
render_output,
presentation_timestamp,
@@ -518,8 +519,8 @@ void MediaDecoderJob::DecodeInternal(
}
ReleaseOutputCompletionCallback completion_callback = base::Bind(
callback, status);
- ReleaseOutputBuffer(buffer_index, size, render_output, presentation_timestamp,
- completion_callback);
+ ReleaseOutputBuffer(buffer_index, offset, size, render_output,
+ presentation_timestamp, completion_callback);
}
void MediaDecoderJob::OnDecodeCompleted(

Powered by Google App Engine