Changeset 75488 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Nov 15, 2018 4:12:07 PM (6 years ago)
- Location:
- trunk/src/VBox/Main/src-server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r75455 r75488 14102 14102 * @note Locks this object for reading. 14103 14103 */ 14104 HRESULT SessionMachine::i_onRecordingChange( )14104 HRESULT SessionMachine::i_onRecordingChange(BOOL aEnable) 14105 14105 { 14106 14106 LogFlowThisFunc(("\n")); … … 14120 14120 return S_OK; 14121 14121 14122 return directControl->OnRecordingChange( );14122 return directControl->OnRecordingChange(aEnable); 14123 14123 } 14124 14124 -
trunk/src/VBox/Main/src-server/RecordingSettingsImpl.cpp
r75455 r75488 46 46 ComObjPtr<RecordingSettings> pPeer; 47 47 RecordScreenSettingsMap mapScreenObj; 48 bool fHasMachineLock;49 48 50 49 // use the XML settings structure in the members for simplicity … … 87 86 88 87 m->bd.allocate(); 89 m->fHasMachineLock = false;90 88 91 89 autoInitSpan.setSucceeded(); … … 123 121 m->bd.share(that->m->bd); 124 122 m->mapScreenObj = that->m->mapScreenObj; 125 m->fHasMachineLock = false;126 123 127 124 autoInitSpan.setSucceeded(); … … 156 153 m->bd.attachCopy(that->m->bd); 157 154 m->mapScreenObj = that->m->mapScreenObj; 158 m->fHasMachineLock = false;159 155 160 156 autoInitSpan.setSucceeded(); … … 219 215 220 216 alock.release(); 221 rc = m->pMachine->i_onRecordingChange( );217 rc = m->pMachine->i_onRecordingChange(enable); 222 218 if (FAILED(rc)) 223 219 { … … 236 232 m->pMachine->i_setModified(Machine::IsModified_Recording); 237 233 238 /* We need to indicate here that we just took the machine lock, as Machine::i_saveSettings() will239 * call i_commit(), which in turn also wants to lock the machine for writing. */240 m->fHasMachineLock = true;241 242 234 /** Save settings if online - @todo why is this required? -- @bugref{6818} */ 243 235 if (Global::IsOnline(m->pMachine->i_getMachineState())) 244 236 rc = m->pMachine->i_saveSettings(NULL); 245 246 m->fHasMachineLock = false;247 237 } 248 238 }
Note:
See TracChangeset
for help on using the changeset viewer.