Changeset 86595 in vbox
- Timestamp:
- Oct 16, 2020 7:18:45 AM (4 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/Devices/Audio/DrvAudio.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r86563 r86595 1116 1116 * Re-initializes the given stream if it is scheduled for this operation. 1117 1117 * 1118 * @note This caller must have entered the critical section of the driver instance, 1119 * needed for the host device (re-)enumeration. 1120 * 1118 1121 * @param pThis Pointer to driver instance. 1119 1122 * @param pStream Stream to check and maybe re-initialize. … … 1133 1136 if (pThis->fEnumerateDevices) 1134 1137 { 1138 /* Make sure to leave the driver's critical section before enumerating host stuff. */ 1139 int rc2 = RTCritSectLeave(&pThis->CritSect); 1140 AssertRC(rc2); 1141 1135 1142 /* Re-enumerate all host devices. */ 1136 1143 drvAudioDevicesEnumerateInternal(pThis, true /* fLog */, NULL /* pDevEnum */); 1144 1145 /* Re-enter the critical section again. */ 1146 rc2 = RTCritSectEnter(&pThis->CritSect); 1147 AssertRC(rc2); 1137 1148 1138 1149 pThis->fEnumerateDevices = false; … … 2097 2108 * VERR_NOT_SUPPORTED if not being supported. 2098 2109 * 2110 * @note Must not hold the driver's critical section! 2111 * 2099 2112 * @returns IPRT status code. 2100 2113 * @param pThis Driver instance to be called. … … 2104 2117 static int drvAudioDevicesEnumerateInternal(PDRVAUDIO pThis, bool fLog, PPDMAUDIODEVICEENUM pDevEnum) 2105 2118 { 2119 AssertReturn(RTCritSectIsOwned(&pThis->CritSect) == false, VERR_WRONG_ORDER); 2120 2106 2121 int rc; 2107 2122
Note:
See TracChangeset
for help on using the changeset viewer.

