VirtualBox

Changeset 46825 in vbox for trunk


Ignore:
Timestamp:
Jun 27, 2013 10:23:20 AM (12 years ago)
Author:
vboxsync
Message:

Main/VPX: error handling

File:
1 edited

Legend:

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

    r46820 r46825  
    17351735    rc = onVideoCaptureChange();
    17361736    alock.acquire();
    1737     if (FAILED(rc)) return rc;
     1737    if (FAILED(rc))
     1738    {
     1739        /*
     1740         * Normally we would do the actual change _after_ onVideoCaptureChange() succeeded.
     1741         * We cannot do this because that function uses Machine::GetVideoCaptureEnabled to
     1742         * determine if it should start or stop capturing. Therefore we need to manually
     1743         * undo change.
     1744         */
     1745        mHWData->mVideoCaptureEnabled = mHWData.backedUpData()->mVideoCaptureEnabled;
     1746        return rc;
     1747    }
    17381748
    17391749    /** Save settings if online - @todo why is this required? -- @bugref{6818} */
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