VirtualBox

Changeset 46532 in vbox


Ignore:
Timestamp:
Jun 13, 2013 1:57:26 PM (11 years ago)
Author:
vboxsync
Message:

Main/MachineImpl: prevent changing video recording settings only if recording is currently enabled AND the VM is running

File:
1 edited

Legend:

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

    r46523 r46532  
    18071807    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    18081808
    1809     if (mHWData->mVideoCaptureEnabled)
     1809    if (   Global::IsOnline(mData->mMachineState)
     1810        && mHWData->mVideoCaptureEnabled)
    18101811        return setError(E_INVALIDARG, tr("Cannot change parameters while capturing is enabled"));
    18111812
     
    18371838    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    18381839
    1839     if (mHWData->mVideoCaptureEnabled)
     1840    if (   Global::IsOnline(mData->mMachineState)
     1841        && mHWData->mVideoCaptureEnabled)
    18401842        return setError(E_INVALIDARG, tr("Cannot change parameters while capturing is enabled"));
    18411843
     
    18641866    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    18651867
    1866     if (mHWData->mVideoCaptureEnabled)
     1868    if (   Global::IsOnline(mData->mMachineState)
     1869        && mHWData->mVideoCaptureEnabled)
    18671870        return setError(E_INVALIDARG, tr("Cannot change parameters while capturing is enabled"));
    18681871
     
    18911894    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    18921895
    1893     if (mHWData->mVideoCaptureEnabled)
     1896    if (   Global::IsOnline(mData->mMachineState)
     1897        && mHWData->mVideoCaptureEnabled)
    18941898        return setError(E_INVALIDARG, tr("Cannot change parameters while capturing is enabled"));
    18951899
     
    19181922    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    19191923
    1920     if (mHWData->mVideoCaptureEnabled)
     1924    if (   Global::IsOnline(mData->mMachineState)
     1925        && mHWData->mVideoCaptureEnabled)
    19211926        return setError(E_INVALIDARG, tr("Cannot change parameters while capturing is enabled"));
    19221927
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