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

Unified Diff: media/filters/source_buffer_stream.cc

Issue 1119163005: Return EOS when selected_range_ is NULL in SourceBufferStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/source_buffer_stream.cc
diff --git a/media/filters/source_buffer_stream.cc b/media/filters/source_buffer_stream.cc
index 4271ab9601bb44393a6f79f0db3fd09daf7c00fd..7eb21520fc5c952da7283571862413aef37dfe93 100644
--- a/media/filters/source_buffer_stream.cc
+++ b/media/filters/source_buffer_stream.cc
@@ -1099,7 +1099,7 @@ SourceBufferStream::Status SourceBufferStream::GetNextBufferInternal(
}
if (!selected_range_ || !selected_range_->HasNextBuffer()) {
- if (end_of_stream_ && IsEndSelected())
+ if (end_of_stream_ && (!selected_range_ || IsEndSelected()))
wolenetz 2015/05/05 20:51:35 Interesting. Since IsEndSelected() is only used in
landell 2015/05/06 08:59:53 I agree. That is how I wanted to do it but I went
landell 2015/05/06 10:46:53 Done.
return kEndOfStream;
DVLOG(3) << __FUNCTION__ << " " << GetStreamTypeName()
<< ": returning kNeedBuffer "
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698