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

Unified Diff: chromecast/media/cma/backend/alsa/media_codec_support_cast_audio.cc

Issue 2677143003: [Chromecast] Introduce a MediaCapabilitiesShlib::IsSupportedAudioConfig (Closed)
Patch Set: Created 3 years, 10 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/alsa/media_codec_support_cast_audio.cc
diff --git a/chromecast/media/cma/backend/alsa/media_codec_support_cast_audio.cc b/chromecast/media/cma/backend/alsa/media_codec_support_cast_audio.cc
index 46dc0de54a92ee57056c7f97a8a6dc9f45362cc5..0b9c8c9f1b36d3404036e261819f86bf3df171dd 100644
--- a/chromecast/media/cma/backend/alsa/media_codec_support_cast_audio.cc
+++ b/chromecast/media/cma/backend/alsa/media_codec_support_cast_audio.cc
@@ -40,5 +40,10 @@ bool MediaCapabilitiesShlib::IsSupportedVideoConfig(VideoCodec codec,
return (codec == kCodecH264 || codec == kCodecVP8 || codec == kCodecVP9);
}
+bool MediaCapabilitiesShlib::IsSupportedAudioConfig(const AudioConfig& config) {
+ return config.codec == kCodecAAC || config.codec == kCodecMP3 ||
erickung1 2017/02/06 21:03:26 nit: not sure which one is chromium style return
+ config.codec == kCodecPCM;
+}
+
} // namespace media
} // namespace chromecast
« no previous file with comments | « no previous file | chromecast/media/cma/backend/cast_media_android.cc » ('j') | chromecast/media/cma/backend/cast_media_default.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698