Index: webrtc/modules/audio_device/android/opensles_player.cc |
diff --git a/webrtc/modules/audio_device/android/opensles_player.cc b/webrtc/modules/audio_device/android/opensles_player.cc |
index a63b8c1257acec6fc2eda9b66fdf124bd20b71ee..9850d00fb65356cac9a18c8b03ffcfc58868e8f0 100644 |
--- a/webrtc/modules/audio_device/android/opensles_player.cc |
+++ b/webrtc/modules/audio_device/android/opensles_player.cc |
@@ -141,7 +141,7 @@ int OpenSLESPlayer::StopPlayout() { |
RETURN_ON_ERROR((*player_)->SetPlayState(player_, SL_PLAYSTATE_STOPPED), -1); |
// Clear the buffer queue to flush out any remaining data. |
RETURN_ON_ERROR((*simple_buffer_queue_)->Clear(simple_buffer_queue_), -1); |
-#ifndef NDEBUG |
+#if RTC_DCHECK_IS_ON |
// Verify that the buffer queue is in fact cleared as it should. |
SLAndroidSimpleBufferQueueState buffer_queue_state; |
(*simple_buffer_queue_)->GetState(simple_buffer_queue_, &buffer_queue_state); |