Bug 837573 - No music sound output after A2dp link disconnected. r=kinetik
authorRandy Lin <rlin@mozilla.com>
Mon, 18 Feb 2013 18:21:29 +0800
changeset 122230 725e172de3586cdcce4bacbff14b41d3a02efd7a
parent 122229 ff752cb0c0cbfc6a0d3725511505adf3eb290cf5
child 122231 9a708c976f45bfa822b3d7a634faf7afe263a366
push id24327
push usergszorc@mozilla.com
push dateTue, 19 Feb 2013 05:22:32 +0000
treeherdermozilla-central@e8f8a3f6f1f6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskinetik
bugs837573
milestone21.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 837573 - No music sound output after A2dp link disconnected. r=kinetik
media/libsydneyaudio/src/sydney_audio_gonk.cpp
--- a/media/libsydneyaudio/src/sydney_audio_gonk.cpp
+++ b/media/libsydneyaudio/src/sydney_audio_gonk.cpp
@@ -153,17 +153,17 @@ sa_stream_open(sa_stream_t *s) {
   if (s == NULL) {
     return SA_ERROR_NO_INIT;
   }
   if (s->output_unit != NULL) {
     return SA_ERROR_INVALID;
   }
 
   int32_t chanConfig = s->channels == 1 ?
-    AudioSystem::CHANNEL_OUT_MONO : AudioSystem::CHANNEL_OUT_STEREO;
+    AUDIO_CHANNEL_OUT_MONO : AUDIO_CHANNEL_OUT_STEREO;
 
   int frameCount;
   if (AudioTrack::getMinFrameCount(&frameCount, s->streamType,
                                    s->rate) != NO_ERROR) {
     return SA_ERROR_INVALID;
   }
   int minsz = frameCount * s->channels * sizeof(int16_t);