Changeset 88630 in vbox
- Timestamp:
- Apr 21, 2021 11:14:02 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 143933
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostAudioWasApi.cpp
r88629 r88630 147 147 /** Pointer to the MM notification client instance. */ 148 148 DrvHostAudioWasMmNotifyClient *pNotifyClient; 149 /** Serializing notifications and pre-activation. */150 RTCRITSECT CritSectNotify;151 149 } DRVHOSTAUDIOWAS; 152 150 /** Pointer to the data for a WASAPI host audio driver instance. */ … … 1706 1704 if (pThis->pNotifyClient) 1707 1705 { 1708 Assert(RTCritSectIsInitialized(&pThis->CritSectNotify));1709 Assert(pThis->pIEnumerator);1710 1711 RTCritSectEnter(&pThis->CritSectNotify);1712 1706 pThis->pNotifyClient->notifyDriverDestroyed(); 1713 RTCritSectLeave(&pThis->CritSectNotify);1714 1715 1707 pThis->pIEnumerator->UnregisterEndpointNotificationCallback(pThis->pNotifyClient); 1716 1717 1708 pThis->pNotifyClient->Release(); 1718 1709 } … … 1724 1715 CoUninitialize(); 1725 1716 } 1726 1727 if (RTCritSectIsInitialized(&pThis->CritSectNotify))1728 RTCritSectDelete(&pThis->CritSectNotify);1729 1717 1730 1718 if (RTCritSectRwIsInitialized(&pThis->CritSectList)) … … 1777 1765 1778 1766 /* 1779 * Initialize the critical sections early as we use one of them for serializing 1780 * the notification client de-registration. 1767 * Initialize the critical section early. 1781 1768 */ 1782 1769 int rc = RTCritSectRwInit(&pThis->CritSectList); 1783 AssertRCReturn(rc, rc);1784 1785 rc = RTCritSectInit(&pThis->CritSectNotify);1786 1770 AssertRCReturn(rc, rc); 1787 1771
Note:
See TracChangeset
for help on using the changeset viewer.