Changeset 68268 in vbox
- Timestamp:
- Aug 3, 2017 7:56:01 AM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/Devices/Audio/AudioMixer.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioMixer.cpp
r68132 r68268 727 727 else if (enmSinkCmd == AUDMIXSINKCMD_DISABLE) 728 728 { 729 /* Set the sink in a pending disable state first. 730 * The final status (disabled) will be set in the sink's iteration. */ 731 pSink->fStatus |= AUDMIXSINK_STS_PENDING_DISABLE; 729 if (pSink->fStatus & AUDMIXSINK_STS_RUNNING) 730 { 731 /* Set the sink in a pending disable state first. 732 * The final status (disabled) will be set in the sink's iteration. */ 733 pSink->fStatus |= AUDMIXSINK_STS_PENDING_DISABLE; 734 } 732 735 } 733 736 … … 1031 1034 int rc2 = RTCritSectEnter(&pSink->CritSect); 1032 1035 if (RT_FAILURE(rc2)) 1033 return 0; 1034 1035 bool fIsActive = (pSink->fStatus & AUDMIXSINK_STS_RUNNING); 1036 return false; 1037 1038 bool fIsActive = pSink->fStatus & AUDMIXSINK_STS_RUNNING; 1039 /* Note: AUDMIXSINK_STS_PENDING_DISABLE implies AUDMIXSINK_STS_RUNNING. */ 1040 1041 Log3Func(("[%s] fActive=%RTbool\n", pSink->pszName, fIsActive)); 1036 1042 1037 1043 rc2 = RTCritSectLeave(&pSink->CritSect); … … 1315 1321 int rc2 = RTCritSectEnter(&pSink->CritSect); 1316 1322 AssertRC(rc2); 1323 1324 LogFlowFunc(("[%s]\n", pSink->pszName)); 1317 1325 1318 1326 audioMixerSinkReset(pSink);
Note:
See TracChangeset
for help on using the changeset viewer.

