VirtualBox

Changeset 45961 in vbox


Ignore:
Timestamp:
May 8, 2013 8:34:30 PM (12 years ago)
Author:
vboxsync
Message:

Main/VPX: don't initialize anything if disabled

File:
1 edited

Legend:

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

    r45958 r45961  
    43504350
    43514351#ifdef VBOX_WITH_VPX
    4352     rc = VideoRecContextCreate(&pDisplay->mpVideoRecCtx, pDisplay->mcMonitors);
    4353     if (RT_FAILURE(rc))
    4354     {
    4355         LogFlow(("Failed to create video recording context (%Rrc)!\n", rc));
    4356         return E_FAIL;
    4357     }
    4358 
    43594352    ComPtr<IMachine> pMachine = pDisplay->mParent->machine();
    43604353    BOOL fEnabled = false;
     
    43624355    if (fEnabled)
    43634356    {
     4357        rc = VideoRecContextCreate(&pDisplay->mpVideoRecCtx, pDisplay->mcMonitors);
     4358        if (RT_FAILURE(rc))
     4359        {
     4360            LogFlow(("Failed to create video recording context (%Rrc)!\n", rc));
     4361            return E_FAIL;
     4362        }
    43644363        ULONG ulWidth;
    43654364        int hrc = pMachine->COMGETTER(VideoCaptureWidth)(&ulWidth);
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