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

Unified Diff: media/mojo/services/mojo_demuxer_stream_adapter.cc

Issue 796143003: Fix EOS buffer handling in spork. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « no previous file | media/mojo/services/mojo_demuxer_stream_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_demuxer_stream_adapter.cc
diff --git a/media/mojo/services/mojo_demuxer_stream_adapter.cc b/media/mojo/services/mojo_demuxer_stream_adapter.cc
index f2b3f303cec054307f3fbdfe1410a465b1076efd..4d568f36edd5d8cdb9ae8aa2c588c89417699c24 100644
--- a/media/mojo/services/mojo_demuxer_stream_adapter.cc
+++ b/media/mojo/services/mojo_demuxer_stream_adapter.cc
@@ -133,7 +133,8 @@ void MojoDemuxerStreamAdapter::OnBufferReady(
if (video_config_queue_.empty())
return;
}
- } else if (status == mojo::DemuxerStream::STATUS_OK) {
+ } else if (status == mojo::DemuxerStream::STATUS_OK &&
+ !media_buffer->end_of_stream()) {
DCHECK_GT(media_buffer->data_size(), 0);
// Read the inner data for the DecoderBuffer from our DataPipe.
« no previous file with comments | « no previous file | media/mojo/services/mojo_demuxer_stream_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698