Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(935)

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: fix bot Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/android/media_decoder_job.h ('k') | media/base/android/video_decoder_job.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « media/base/android/media_decoder_job.h ('k') | media/base/android/video_decoder_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698