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

Unified Diff: chrome/renderer/media/cast_rtp_stream.cc

Issue 281333002: Stop cast streaming API without start (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: chrome/renderer/media/cast_rtp_stream.cc
diff --git a/chrome/renderer/media/cast_rtp_stream.cc b/chrome/renderer/media/cast_rtp_stream.cc
index ca775569b8daeac3343d1fe3d37c6d50b1316c71..42639abea781534e4c7b29a6c5134d4d57b8f324 100644
--- a/chrome/renderer/media/cast_rtp_stream.cc
+++ b/chrome/renderer/media/cast_rtp_stream.cc
@@ -510,7 +510,8 @@ void CastRtpStream::Stop() {
VLOG(1) << "CastRtpStream::Stop = " << (IsAudio() ? "audio" : "video");
audio_sink_.reset();
video_sink_.reset();
- stop_callback_.Run();
+ if (!stop_callback_.is_null())
+ stop_callback_.Run();
}
void CastRtpStream::ToggleLogging(bool enable) {

Powered by Google App Engine
This is Rietveld 408576698