Changeset 68803 in vbox
- Timestamp:
- Sep 20, 2017 1:06:54 PM (7 years ago)
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r68802 r68803 2420 2420 * Get parameters from API. 2421 2421 */ 2422 SafeArray<BOOL> aScreens;2422 com::SafeArray<BOOL> aScreens; 2423 2423 HRESULT rc = pMachine->COMGETTER(VideoCaptureScreens)(ComSafeArrayAsOutParam(aScreens)); 2424 2424 AssertComRCReturn(rc, VERR_COM_UNEXPECTED); 2425 aScreens.cloneTo(mVideoRecCfg.aScreens); 2425 2426 mVideoRecCfg.aScreens.resize(aScreens.size()); 2427 for (size_t i = 0; i < aScreens.size(); ++i) 2428 mVideoRecCfg.aScreens[i] = aScreens[i]; 2426 2429 2427 2430 rc = pMachine->COMGETTER(VideoCaptureWidth)((ULONG *)&mVideoRecCfg.Video.uWidth); -
trunk/src/VBox/Main/src-client/VideoRec.h
r68798 r68803 59 59 /** Whether recording is enabled or not (as a whole). */ 60 60 bool fEnabled; 61 /** */ 61 /** Array of all screens containing whether they're enabled 62 * for recording or not. */ 62 63 com::SafeArray<BOOL> aScreens; 63 64 /** Destination where to write the stream to. */ … … 121 122 { 122 123 fEnabled = that.fEnabled; 123 that.aScreens.cloneTo(aScreens); 124 125 aScreens.resize(that.aScreens.size()); 126 for (size_t i = 0; i < that.aScreens.size(); ++i) 127 aScreens[i] = that.aScreens[i]; 128 124 129 enmDst = that.enmDst; 125 130
Note:
See TracChangeset
for help on using the changeset viewer.