OSDN Git Service

Fix Audioflinger crash when TeeSink is enabled
authorGlenn Kasten <gkasten@google.com>
Mon, 6 May 2013 23:06:24 +0000 (16:06 -0700)
committerGlenn Kasten <gkasten@google.com>
Mon, 6 May 2013 23:27:25 +0000 (16:27 -0700)
Bug: 8834855
Change-Id: I54665f16d79901970348a8247d9a354da2990f42

services/audioflinger/AudioFlinger.h

index d0ef922..b0efef6 100644 (file)
@@ -588,11 +588,12 @@ private:
     status_t    closeOutput_nonvirtual(audio_io_handle_t output);
     status_t    closeInput_nonvirtual(audio_io_handle_t input);
 
-#ifdef TEE_SINK
+// do not use #ifdef here, since AudioFlinger.h is included by more than one module
+//#ifdef TEE_SINK
     // all record threads serially share a common tee sink, which is re-created on format change
     sp<NBAIO_Sink>   mRecordTeeSink;
     sp<NBAIO_Source> mRecordTeeSource;
-#endif
+//#endif
 
 public: