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

Unified Diff: chromecast/media/cma/backend/cast_media_dummy.cc

Issue 2677143003: [Chromecast] Introduce a MediaCapabilitiesShlib::IsSupportedAudioConfig (Closed)
Patch Set: Fixed cast_media_android.cc impl Created 3 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
Index: chromecast/media/cma/backend/cast_media_dummy.cc
diff --git a/chromecast/media/cma/backend/cast_media_dummy.cc b/chromecast/media/cma/backend/cast_media_dummy.cc
index e8996dca0356264badc67b11546a89689e32a467..b889a0fc9cc00d23c7aef2b44048a83f67f9c1e9 100644
--- a/chromecast/media/cma/backend/cast_media_dummy.cc
+++ b/chromecast/media/cma/backend/cast_media_dummy.cc
@@ -52,5 +52,10 @@ bool MediaCapabilitiesShlib::IsSupportedVideoConfig(VideoCodec codec,
return (codec == kCodecH264 || codec == kCodecVP8);
}
+bool MediaCapabilitiesShlib::IsSupportedAudioConfig(const AudioConfig& config) {
+ return config.codec == kCodecAAC || config.codec == kCodecMP3 ||
+ config.codec == kCodecPCM;
+}
+
} // namespace media
} // namespace chromecast
« no previous file with comments | « chromecast/media/cma/backend/cast_media_default.cc ('k') | chromecast/public/media/media_capabilities_shlib.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698