Changeset 65170 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jan 6, 2017 9:55:26 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DrvAudioVideoRec.cpp
r65162 r65170 55 55 /** Pointer to host audio interface. */ 56 56 PDMIHOSTAUDIO IHostAudio; 57 /** Pointer to the VRDP's console object. */58 ConsoleVRDPServer *pConsoleVRDPServer;59 57 /** Pointer to the DrvAudio port interface that is above us. */ 60 58 PPDMIAUDIOCONNECTOR pDrvAudio; … … 219 217 static int avRecDestroyStreamIn(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream) 220 218 { 221 RT_NOREF(pStream); 222 PDRVAUDIOVIDEOREC pThis = PDMIHOSTAUDIO_2_DRVAUDIOVIDEOREC(pInterface); 223 224 if (pThis->pConsoleVRDPServer) 225 pThis->pConsoleVRDPServer->SendAudioInputEnd(NULL); 219 RT_NOREF(pInterface, pStream); 226 220 227 221 return VINF_SUCCESS; … … 422 416 423 417 /* 424 * Get the ConsoleVRDPServer object pointer.425 */426 void *pvUser;427 int rc = CFGMR3QueryPtr(pCfg, "ObjectVRDPServer", &pvUser); /** @todo r=andy Get rid of this hack and use IHostAudio::SetCallback. */428 AssertMsgRCReturn(rc, ("Confguration error: No/bad \"ObjectVRDPServer\" value, rc=%Rrc\n", rc), rc);429 430 /* CFGM tree saves the pointer to ConsoleVRDPServer in the Object node of AudioVideoRec. */431 pThis->pConsoleVRDPServer = (ConsoleVRDPServer *)pvUser;432 433 /*434 418 * Get the AudioVideoRec object pointer. 435 419 */ 436 pvUser = NULL;437 rc = CFGMR3QueryPtr(pCfg, "Object", &pvUser); /** @todo r=andy Get rid of this hack and use IHostAudio::SetCallback. */420 void *pvUser = NULL; 421 int rc = CFGMR3QueryPtr(pCfg, "Object", &pvUser); /** @todo r=andy Get rid of this hack and use IHostAudio::SetCallback. */ 438 422 AssertMsgRCReturn(rc, ("Confguration error: No/bad \"Object\" value, rc=%Rrc\n", rc), rc); 439 423
Note:
See TracChangeset
for help on using the changeset viewer.