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

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

Issue 2048033003: Refactoring: CastTransport InitializeAudio/InitializeVideo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Rebased. Created 4 years, 5 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_session_delegate.cc
diff --git a/chrome/renderer/media/cast_session_delegate.cc b/chrome/renderer/media/cast_session_delegate.cc
index 5596d5defe8df9c92badf03a862e3f63ef716b8a..9c8d9979e24246df6476e45da41864fe067b357e 100644
--- a/chrome/renderer/media/cast_session_delegate.cc
+++ b/chrome/renderer/media/cast_session_delegate.cc
@@ -91,10 +91,8 @@ void CastSessionDelegateBase::StatusNotificationCB(
std::string error_message;
switch (status) {
- case media::cast::TRANSPORT_AUDIO_UNINITIALIZED:
- case media::cast::TRANSPORT_VIDEO_UNINITIALIZED:
- case media::cast::TRANSPORT_AUDIO_INITIALIZED:
- case media::cast::TRANSPORT_VIDEO_INITIALIZED:
+ case media::cast::TRANSPORT_STREAM_UNINITIALIZED:
+ case media::cast::TRANSPORT_STREAM_INITIALIZED:
return; // Not errors, do nothing.
case media::cast::TRANSPORT_INVALID_CRYPTO_CONFIG:
error_callback.Run("Invalid encrypt/decrypt configuration.");

Powered by Google App Engine
This is Rietveld 408576698