Changeset 68882 in vbox for trunk/src/VBox/Main
- Timestamp:
- Sep 26, 2017 6:13:13 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 118144
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DrvAudioVideoRec.cpp
r68850 r68882 1019 1019 1020 1020 /** 1021 * @interface_method_impl{PDMDRVREG,pfnDestruct} 1022 */ 1023 /* static */ 1024 DECLCALLBACK(void) AudioVideoRec::drvDestruct(PPDMDRVINS pDrvIns) 1025 { 1026 PDMDRV_CHECK_VERSIONS_RETURN_VOID(pDrvIns); 1027 PDRVAUDIOVIDEOREC pThis = PDMINS_2_DATA(pDrvIns, PDRVAUDIOVIDEOREC); 1028 LogFlowFuncEnter(); 1029 1030 /* 1031 * If the AudioVideoRec object is still alive, we must clear it's reference to 1032 * us since we'll be invalid when we return from this method. 1033 */ 1034 if (pThis->pAudioVideoRec) 1035 { 1036 pThis->pAudioVideoRec->mpDrv = NULL; 1037 pThis->pAudioVideoRec = NULL; 1038 } 1039 } 1040 1041 1042 /** 1021 1043 * Construct a audio video recording driver instance. 1022 1044 * … … 1026 1048 DECLCALLBACK(int) AudioVideoRec::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 1027 1049 { 1028 RT_NOREF(fFlags);1029 1030 AssertPtrReturn(pDrvIns, VERR_INVALID_POINTER);1031 AssertPtrReturn(pCfg, VERR_INVALID_POINTER);1032 1033 1050 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns); 1034 1051 PDRVAUDIOVIDEOREC pThis = PDMINS_2_DATA(pDrvIns, PDRVAUDIOVIDEOREC); 1052 RT_NOREF(fFlags); 1035 1053 1036 1054 LogRel(("Audio: Initializing video recording audio driver\n")); … … 1085 1103 1086 1104 return VINF_SUCCESS; 1087 }1088 1089 1090 /**1091 * @interface_method_impl{PDMDRVREG,pfnDestruct}1092 */1093 /* static */1094 DECLCALLBACK(void) AudioVideoRec::drvDestruct(PPDMDRVINS pDrvIns)1095 {1096 PDMDRV_CHECK_VERSIONS_RETURN_VOID(pDrvIns);1097 PDRVAUDIOVIDEOREC pThis = PDMINS_2_DATA(pDrvIns, PDRVAUDIOVIDEOREC);1098 LogFlowFuncEnter();1099 1100 /*1101 * If the AudioVideoRec object is still alive, we must clear it's reference to1102 * us since we'll be invalid when we return from this method.1103 */1104 if (pThis->pAudioVideoRec)1105 {1106 pThis->pAudioVideoRec->mpDrv = NULL;1107 pThis->pAudioVideoRec = NULL;1108 }1109 1105 } 1110 1106
Note:
See TracChangeset
for help on using the changeset viewer.