VirtualBox

Changeset 104713 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
May 17, 2024 2:45:27 PM (8 months ago)
Author:
vboxsync
Message:

Recording/Main: Do not alter the settings (the global recording enabled/disabled bit) when Console::i_recordingStop() is being called. This led the VM to have disabled recording on the next run even if recording actually was intended to stay enabled (via settings).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r104286 r104713  
    76547654/**
    76557655 * Stops recording. Does nothing if recording is not active.
    7656  */
    7657 int Console::i_recordingStop(util::AutoWriteLock *pAutoLock /* = NULL */)
     7656 *
     7657 * Note: This does *not* disable recording for a VM, in other words,
     7658 *       it does not change the VM's recording (enabled) setting.
     7659 */
     7660int Console::i_recordingStop(util::AutoWriteLock *)
    76587661{
    76597662    if (!mRecording.mCtx.IsStarted())
     
    76687671        for (unsigned uScreen = 0; uScreen < cStreams; ++uScreen)
    76697672            mDisplay->i_recordingScreenChanged(uScreen);
    7670 
    7671         if (pAutoLock)
    7672             pAutoLock->release();
    7673 
    7674         ComPtr<IRecordingSettings> pRecordSettings;
    7675         HRESULT hrc = mMachine->COMGETTER(RecordingSettings)(pRecordSettings.asOutParam());
    7676         ComAssertComRC(hrc);
    7677         hrc = pRecordSettings->COMSETTER(Enabled)(FALSE);
    7678         ComAssertComRC(hrc);
    7679 
    7680         if (pAutoLock)
    7681             pAutoLock->acquire();
    76827673    }
    76837674
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