Changeset 89282 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- May 25, 2021 8:11:23 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 144628
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r89258 r89282 2213 2213 Assert(pStreamEx->cRefs >= 2); 2214 2214 int rc2 = RTReqCancel(pStreamEx->hReqInitAsync); 2215 2216 RTReqRelease(pStreamEx->hReqInitAsync); 2217 pStreamEx->hReqInitAsync = NIL_RTREQ; 2218 2219 RTCritSectLeave(&pStreamEx->Core.CritSect); /* (exit before releasing the stream to avoid assertion) */ 2220 2215 2221 if (RT_SUCCESS(rc2)) 2216 2222 { … … 2225 2231 Assert(rc2 == VERR_RT_REQUEST_STATE); 2226 2232 } 2227 2228 RTReqRelease(pStreamEx->hReqInitAsync);2229 pStreamEx->hReqInitAsync = NIL_RTREQ;2230 2233 } 2231 2232 RTCritSectLeave(&pStreamEx->Core.CritSect);2234 else 2235 RTCritSectLeave(&pStreamEx->Core.CritSect); 2233 2236 2234 2237 /* … … 4131 4134 AssertRCReturn(rc, rc); 4132 4135 4133 Assert Ptr(pThis->hReqPool != NIL_RTREQPOOL);4136 Assert(pThis->hReqPool != NIL_RTREQPOOL); 4134 4137 AssertPtr(pThis->pHostDrvAudio); 4135 4138 if ( pThis->hReqPool != NIL_RTREQPOOL 4136 4139 && pThis->pHostDrvAudio != NULL) 4137 4140 { 4138 Assert (pThis->pHostDrvAudio->pfnDoOnWorkerThread);4141 AssertPtr(pThis->pHostDrvAudio->pfnDoOnWorkerThread); 4139 4142 if (pThis->pHostDrvAudio->pfnDoOnWorkerThread) 4140 4143 { … … 4150 4153 else 4151 4154 { 4152 4153 4155 uint32_t cRefs = drvAudioStreamRetainInternal(pStreamEx); 4154 4156 if (cRefs != UINT32_MAX)
Note:
See TracChangeset
for help on using the changeset viewer.