VirtualBox

Changeset 75488 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Nov 15, 2018 4:12:07 PM (6 years ago)
Author:
vboxsync
Message:

Recording/Main: Implemented better support for recording limits (also now configurable per screen).

Location:
trunk/src/VBox/Main/src-server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r75455 r75488  
    1410214102 * @note Locks this object for reading.
    1410314103 */
    14104 HRESULT SessionMachine::i_onRecordingChange()
     14104HRESULT SessionMachine::i_onRecordingChange(BOOL aEnable)
    1410514105{
    1410614106    LogFlowThisFunc(("\n"));
     
    1412014120        return S_OK;
    1412114121
    14122     return directControl->OnRecordingChange();
     14122    return directControl->OnRecordingChange(aEnable);
    1412314123}
    1412414124
  • trunk/src/VBox/Main/src-server/RecordingSettingsImpl.cpp

    r75455 r75488  
    4646    ComObjPtr<RecordingSettings> pPeer;
    4747    RecordScreenSettingsMap      mapScreenObj;
    48     bool                         fHasMachineLock;
    4948
    5049    // use the XML settings structure in the members for simplicity
     
    8786
    8887    m->bd.allocate();
    89     m->fHasMachineLock = false;
    9088
    9189    autoInitSpan.setSucceeded();
     
    123121    m->bd.share(that->m->bd);
    124122    m->mapScreenObj = that->m->mapScreenObj;
    125     m->fHasMachineLock = false;
    126123
    127124    autoInitSpan.setSucceeded();
     
    156153    m->bd.attachCopy(that->m->bd);
    157154    m->mapScreenObj = that->m->mapScreenObj;
    158     m->fHasMachineLock = false;
    159155
    160156    autoInitSpan.setSucceeded();
     
    219215
    220216        alock.release();
    221         rc = m->pMachine->i_onRecordingChange();
     217        rc = m->pMachine->i_onRecordingChange(enable);
    222218        if (FAILED(rc))
    223219        {
     
    236232            m->pMachine->i_setModified(Machine::IsModified_Recording);
    237233
    238             /* We need to indicate here that we just took the machine lock, as Machine::i_saveSettings() will
    239              * call i_commit(), which in turn also wants to lock the machine for writing. */
    240             m->fHasMachineLock = true;
    241 
    242234            /** Save settings if online - @todo why is this required? -- @bugref{6818} */
    243235            if (Global::IsOnline(m->pMachine->i_getMachineState()))
    244236                rc = m->pMachine->i_saveSettings(NULL);
    245 
    246             m->fHasMachineLock = false;
    247237        }
    248238    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette