Changeset 68990 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Oct 4, 2017 3:17:45 PM (7 years ago)
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r68984 r68990 2537 2537 rc = pMachine->COMGETTER(VideoCaptureFPS)((ULONG *)&pCfg->Video.uFPS); 2538 2538 AssertComRCReturn(rc, VERR_COM_UNEXPECTED); 2539 rc = pMachine->COMGETTER(VideoCaptureFile)( &pCfg->File.strFile);2539 rc = pMachine->COMGETTER(VideoCaptureFile)(pCfg->File.strName.asOutParam()); 2540 2540 AssertComRCReturn(rc, VERR_COM_UNEXPECTED); 2541 2541 rc = pMachine->COMGETTER(VideoCaptureMaxFileSize)((ULONG *)&pCfg->File.uMaxSizeMB); -
trunk/src/VBox/Main/src-client/VideoRec.cpp
r68987 r68990 30 30 #include <iprt/time.h> 31 31 32 #include <VBox/log.h>33 32 #include <VBox/com/VirtualBox.h> 34 #include <VBox/com/com.h>35 #include <VBox/com/string.h>36 33 37 34 #include "EbmlWriter.h" … … 938 935 Assert(pCfg->enmDst == VIDEORECDEST_FILE); 939 936 940 Assert( com::Utf8Str(pCfg->File.strFile).isNotEmpty());941 942 char *pszAbsPath = RTPathAbsDup(com::Utf8Str(pCfg->File.str File).c_str());937 Assert(pCfg->File.strName.isNotEmpty()); 938 939 char *pszAbsPath = RTPathAbsDup(com::Utf8Str(pCfg->File.strName).c_str()); 943 940 AssertPtrReturn(pszAbsPath, VERR_NO_MEMORY); 944 941 -
trunk/src/VBox/Main/src-client/VideoRec.h
r68981 r68990 75 75 /** Destination where to write the stream to. */ 76 76 VIDEORECDEST enmDst; 77 union 77 78 /** 79 * Structure for keeping recording parameters if 80 * destination is a file. 81 */ 82 struct 78 83 { 79 /** 80 * Structure for keeping recording parameters if 81 * destination is a file. 82 */ 83 struct 84 { 85 BSTR strFile; 86 /** Maximum file size (in MB) to record. */ 87 uint32_t uMaxSizeMB; 88 } File; 89 }; 84 /** File name (as absolute path). */ 85 com::Bstr strName; 86 /** Maximum file size (in MB) to record. */ 87 uint32_t uMaxSizeMB; 88 } File; 90 89 91 90 #ifdef VBOX_WITH_AUDIO_VIDEOREC … … 95 94 struct 96 95 { 96 /** Whether audio recording is enabled or not. */ 97 97 bool fEnabled; 98 /** Hertz (Hz) rate. */ 98 99 uint16_t uHz; 100 /** Bits per sample. */ 99 101 uint8_t cBits; 102 /** Number of audio channels. */ 100 103 uint8_t cChannels; 104 /** Audio profile which is being used. */ 101 105 VIDEORECPROFILE enmProfile; 102 106 } Audio; … … 108 112 struct 109 113 { 114 /** Whether video recording is enabled or not. */ 110 115 bool fEnabled; 116 /** Target width (in pixels). */ 111 117 uint32_t uWidth; 118 /** Target height (in pixels). */ 112 119 uint32_t uHeight; 120 /** Target encoding rate. */ 113 121 uint32_t uRate; 122 /** Target FPS. */ 114 123 uint32_t uFPS; 115 124 … … 140 149 enmDst = that.enmDst; 141 150 142 File.str File = that.File.strFile;151 File.strName = that.File.strName; 143 152 File.uMaxSizeMB = that.File.uMaxSizeMB; 144 153 #ifdef VBOX_WITH_AUDIO_VIDEOREC
Note:
See TracChangeset
for help on using the changeset viewer.