Changeset 68797 in vbox for trunk/src/VBox/Main
- Timestamp:
- Sep 20, 2017 10:26:24 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 118044
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DrvAudioVideoRec.cpp
r68772 r68797 330 330 case AVRECCONTAINERTYPE_MAIN_CONSOLE: 331 331 { 332 pSink->Con.Main.pConsole = pThis->pConsole; 332 if (pThis->pConsole) 333 { 334 pSink->Con.Main.pConsole = pThis->pConsole; 335 } 336 else 337 rc = VERR_NOT_SUPPORTED; 333 338 break; 334 339 } … … 1019 1024 RT_NOREF(fFlags); 1020 1025 1026 AssertPtrReturn(pDrvIns, VERR_INVALID_POINTER); 1027 AssertPtrReturn(pCfg, VERR_INVALID_POINTER); 1028 1021 1029 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns); 1022 1030 PDRVAUDIOVIDEOREC pThis = PDMINS_2_DATA(pDrvIns, PDRVAUDIOVIDEOREC); 1023 1024 AssertPtrReturn(pDrvIns, VERR_INVALID_POINTER);1025 AssertPtrReturn(pCfg, VERR_INVALID_POINTER);1026 1031 1027 1032 LogRel(("Audio: Initializing video recording audio driver\n")); … … 1046 1051 void *pvUser; 1047 1052 int rc = CFGMR3QueryPtr(pCfg, "ObjectConsole", &pvUser); /** @todo r=andy Get rid of this hack and use IHostAudio::SetCallback. */ 1048 Assert MsgRCReturn(rc, ("Confguration error: No/bad \"ObjectConsole\" value, rc=%Rrc\n", rc), rc);1053 AssertRCReturn(rc, rc); 1049 1054 1050 1055 /* CFGM tree saves the pointer to Console in the Object node of AudioVideoRec. */ 1051 1056 pThis->pConsole = (Console *)pvUser; 1057 AssertReturn(!pThis->pConsole.isNull(), VERR_INVALID_POINTER); 1052 1058 1053 1059 /* … … 1055 1061 */ 1056 1062 rc = CFGMR3QueryPtr(pCfg, "Object", &pvUser); /** @todo r=andy Get rid of this hack and use IHostAudio::SetCallback. */ 1057 Assert MsgRCReturn(rc, ("Confguration error: No/bad \"Object\" value, rc=%Rrc\n", rc), rc);1063 AssertRCReturn(rc, rc); 1058 1064 1059 1065 pThis->pAudioVideoRec = (AudioVideoRec *)pvUser; 1066 AssertPtrReturn(pThis->pAudioVideoRec, VERR_INVALID_POINTER); 1067 1060 1068 pThis->pAudioVideoRec->mpDrv = pThis; 1061 1069
Note:
See TracChangeset
for help on using the changeset viewer.