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

Unified Diff: media/blink/webmediaplayer_impl.cc

Issue 1803363002: Add missing null check on |data_source_| (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/blink/webmediaplayer_impl.cc
diff --git a/media/blink/webmediaplayer_impl.cc b/media/blink/webmediaplayer_impl.cc
index 6e73a12fee07e1a5e1f957e705455686ef14ff7e..3d1b83643187175d4e9960547d0285f7e807b868 100644
--- a/media/blink/webmediaplayer_impl.cc
+++ b/media/blink/webmediaplayer_impl.cc
@@ -886,7 +886,8 @@ void WebMediaPlayerImpl::OnPipelineSuspended() {
// enough data so that it may release the connection.
if (buffering_strategy_ !=
BufferedDataSource::BUFFERING_STRATEGY_AGGRESSIVE) {
- data_source_->OnBufferingHaveEnough(true);
+ if (data_source_)
+ data_source_->OnBufferingHaveEnough(true);
}
if (pending_suspend_resume_cycle_) {
« 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