Skip to content
This repository
Browse code

[AE/CA] - reduce streamlock time in makestream

  • Loading branch information...
commit 52aa242e34f1541088571013fdad7337f451d1a7 1 parent 35db516
Memphiz authored November 22, 2012
3  xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioAE.cpp
@@ -431,9 +431,8 @@ IAEStream* CCoreAudioAE::MakeStream(enum AEDataFormat dataFormat,
431 431
   CLog::Log(LOGINFO, "CCoreAudioAE::MakeStream - %s, %u, %u, %s",
432 432
     CAEUtil::DataFormatToStr(dataFormat), sampleRate, encodedSamplerate, ((std::string)channelInfo).c_str());
433 433
 
434  
-  CSingleLock streamLock(m_streamLock);
435  
-  //bool wasEmpty = m_streams.empty();
436 434
   CCoreAudioAEStream *stream = new CCoreAudioAEStream(dataFormat, sampleRate, encodedSamplerate, channelLayout, options);
  435
+  CSingleLock streamLock(m_streamLock);
437 436
   m_streams.push_back(stream);
438 437
   streamLock.Leave();
439 438
 

0 notes on commit 52aa242

Please sign in to comment.
Something went wrong with that request. Please try again.