diff options
author | Alex Kutsan <akutsan@luxoft.com> | 2017-01-31 18:43:15 +0200 |
---|---|---|
committer | Alex Kutsan <akutsan@luxoft.com> | 2017-01-31 18:43:15 +0200 |
commit | 436bbb001282cf4f5866a374d833db46c55ee64c (patch) | |
tree | 4b58faf697a0f51982bf4d084101cb865405000b /src/components/media_manager | |
parent | 65d4b71b8309def7649f4ecdf1f01a4215712849 (diff) | |
parent | 128ed1d4fbd6a7d9f989f9461a6d3e6c136e1d9f (diff) | |
download | sdl_core-436bbb001282cf4f5866a374d833db46c55ee64c.tar.gz |
Merge remote-tracking branch 'remote_genivi/develop' into feature/merge_relese4.3.0_to_develop
Diffstat (limited to 'src/components/media_manager')
-rw-r--r-- | src/components/media_manager/src/audio/audio_stream_sender_thread.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/media_manager/src/audio/audio_stream_sender_thread.cc b/src/components/media_manager/src/audio/audio_stream_sender_thread.cc index 24b12cabad..7c18cb400b 100644 --- a/src/components/media_manager/src/audio/audio_stream_sender_thread.cc +++ b/src/components/media_manager/src/audio/audio_stream_sender_thread.cc @@ -52,7 +52,11 @@ namespace media_manager { using sync_primitives::AutoLock; -const int32_t AudioStreamSenderThread::kAudioPassThruTimeout = 1; +#ifdef EXTENDED_MEDIA_MODE +const int32_t AudioStreamSenderThread::kAudioPassThruTimeout = 50; +#else +const int32_t AudioStreamSenderThread::kAudioPassThruTimeout = 1000; +#endif const uint32_t kMqueueMessageSize = 4095; CREATE_LOGGERPTR_GLOBAL(logger_, "MediaManager") @@ -79,7 +83,7 @@ void AudioStreamSenderThread::threadMain() { while (false == getShouldBeStopped()) { AutoLock auto_lock(shouldBeStoped_lock_); - shouldBeStoped_cv_.WaitFor(auto_lock, kAudioPassThruTimeout * 1000); + shouldBeStoped_cv_.WaitFor(auto_lock, kAudioPassThruTimeout); sendAudioChunkToMobile(); } } |