aboutsummaryrefslogtreecommitdiff
path: root/cast/standalone_receiver/sdl_audio_player.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cast/standalone_receiver/sdl_audio_player.cc')
-rw-r--r--cast/standalone_receiver/sdl_audio_player.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/cast/standalone_receiver/sdl_audio_player.cc b/cast/standalone_receiver/sdl_audio_player.cc
index 3392b706..c460a7ed 100644
--- a/cast/standalone_receiver/sdl_audio_player.cc
+++ b/cast/standalone_receiver/sdl_audio_player.cc
@@ -55,12 +55,12 @@ void InterleaveAudioSamples(const uint8_t* const planes[],
SDLAudioPlayer::SDLAudioPlayer(ClockNowFunctionPtr now_function,
TaskRunner* task_runner,
Receiver* receiver,
- const std::string& codec_name,
+ AudioCodec codec,
std::function<void()> error_callback)
: SDLPlayerBase(now_function,
task_runner,
receiver,
- codec_name,
+ CodecToString(codec),
std::move(error_callback),
kAudioMediaType) {}