Changeset 58573 in vbox for trunk/src/VBox/Devices/Audio/AudioMixer.cpp
- Timestamp:
- Nov 4, 2015 5:15:34 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioMixer.cpp
r56692 r58573 349 349 return; 350 350 351 PAUDMIXSTREAM pStream = RTListGetFirst(&pSink->lstStreams, AUDMIXSTREAM, Node); 352 while (pStream) 353 { 354 PAUDMIXSTREAM pNext = RTListNodeGetNext(&pStream->Node, AUDMIXSTREAM, Node); 355 bool fLast = RTListNodeIsLast(&pSink->lstStreams, &pStream->Node); 356 351 PAUDMIXSTREAM pStream, pStreamNext; 352 RTListForEachSafe(&pSink->lstStreams, pStream, pStreamNext, AUDMIXSTREAM, Node) 357 353 AudioMixerRemoveStream(pSink, pStream); 358 359 if (fLast)360 break;361 362 pStream = pNext;363 }364 354 365 355 Assert(pSink->cStreams == 0); … … 385 375 pSink->cStreams--; 386 376 377 #ifdef DEBUG 387 378 const char *pszStream = pSink->enmDir == AUDMIXSINKDIR_INPUT 388 379 ? pStream->pIn->MixBuf.pszName : pStream->pOut->MixBuf.pszName; 389 380 390 381 LogFlowFunc(("%s: pStream=%s, cStreams=%RU8\n", 391 pSink->pszName, pszStream, pSink->cStreams)); 382 pSink->pszName, pszStream ? pszStream : "<Unnamed>", pSink->cStreams)); 383 #endif 392 384 393 385 audioMixerDestroyStream(pStream);
Note:
See TracChangeset
for help on using the changeset viewer.