VirtualBox

Changeset 46667 in vbox for trunk/src/VBox/Main/xml


Ignore:
Timestamp:
Jun 19, 2013 3:30:23 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
86558
Message:

Main/idl: clarify IMachine.videoCaptureFile to be an absolute path, and many naming convention cleanups for method/attribute names starting with an uppercase letter or containing an acronym
Main/xml/Settings.cpp: clean up default video capture file handling and related path conversions, version handling of the new functionality
Main/Machine: handle default value for video capture file better, store relative path in settings if possible, cleanups
Main/src-client/VideoRec.cpp: do not overwrite a file ever
Main/Display: generate a unique name if there is a collision, matching cleanups for name changes
Frontends/VirtualBox: matching name changes
Frontends/VBoxManage: matching name changes, fixing the machine readable output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r46367 r46667  
    17541754          ulVideoCaptureVertRes(768),
    17551755          ulVideoCaptureRate(512),
    1756           ulVideoCaptureFps(25),
     1756          ulVideoCaptureFPS(25),
    17571757          fVideoCaptureEnabled(false),
    17581758          u64VideoCaptureScreens(UINT64_C(0xffffffffffffffff)),
    1759           strVideoCaptureFile("Test.webm"),
     1759          strVideoCaptureFile(""),
    17601760          firmwareType(FirmwareType_BIOS),
    17611761          pointingHIDType(PointingHIDType_PS2Mouse),
     
    18321832                  && (ulVideoCaptureVertRes     == h.ulVideoCaptureVertRes)
    18331833                  && (ulVideoCaptureRate        == h.ulVideoCaptureRate)
    1834                   && (ulVideoCaptureFps         == h.ulVideoCaptureFps)
     1834                  && (ulVideoCaptureFPS         == h.ulVideoCaptureFPS)
    18351835                  && (firmwareType              == h.firmwareType)
    18361836                  && (pointingHIDType           == h.pointingHIDType)
     
    27312731            pelmHwChild->getAttributeValue("enabled",   hw.fVideoCaptureEnabled);
    27322732            pelmHwChild->getAttributeValue("screens",   hw.u64VideoCaptureScreens);
    2733             pelmHwChild->getAttributeValue("file",      hw.strVideoCaptureFile);
     2733            pelmHwChild->getAttributeValuePath("file",  hw.strVideoCaptureFile);
    27342734            pelmHwChild->getAttributeValue("horzRes",   hw.ulVideoCaptureHorzRes);
    27352735            pelmHwChild->getAttributeValue("vertRes",   hw.ulVideoCaptureVertRes);
    27362736            pelmHwChild->getAttributeValue("rate",      hw.ulVideoCaptureRate);
    2737             pelmHwChild->getAttributeValue("fps",       hw.ulVideoCaptureFps);
     2737            pelmHwChild->getAttributeValue("fps",       hw.ulVideoCaptureFPS);
    27382738        }
    27392739        else if (pelmHwChild->nameEquals("RemoteDisplay"))
     
    39163916    xml::ElementNode *pelmVideoCapture = pelmHardware->createChild("VideoCapture");
    39173917
    3918     if (m->sv >= SettingsVersion_v1_12)
     3918    if (m->sv >= SettingsVersion_v1_14)
    39193919    {
    39203920        pelmVideoCapture->setAttribute("enabled",   hw.fVideoCaptureEnabled);
    39213921        pelmVideoCapture->setAttribute("screens",   hw.u64VideoCaptureScreens);
    3922         pelmVideoCapture->setAttribute("file",      hw.strVideoCaptureFile);
     3922        if (!hw.strVideoCaptureFile.isEmpty())
     3923            pelmVideoCapture->setAttributePath("file",  hw.strVideoCaptureFile);
    39233924        pelmVideoCapture->setAttribute("horzRes",   hw.ulVideoCaptureHorzRes);
    39243925        pelmVideoCapture->setAttribute("vertRes",   hw.ulVideoCaptureVertRes);
    39253926        pelmVideoCapture->setAttribute("rate",      hw.ulVideoCaptureRate);
    3926         pelmVideoCapture->setAttribute("fps",       hw.ulVideoCaptureFps);
     3927        pelmVideoCapture->setAttribute("fps",       hw.ulVideoCaptureFPS);
    39273928    }
    39283929
     
    50525053    {
    50535054        // VirtualBox 4.3 adds default frontend setting, graphics controller
    5054         // setting, explicit long mode setting.
     5055        // setting, explicit long mode setting and video capturing.
    50555056        if (   !hardwareMachine.strDefaultFrontend.isEmpty()
    50565057            || hardwareMachine.graphicsControllerType != GraphicsControllerType_VBoxVGA
    50575058            || hardwareMachine.enmLongMode != Hardware::LongMode_Legacy
    5058             || machineUserData.ovIcon.length() > 0)
     5059            || machineUserData.ovIcon.length() > 0
     5060            || hardwareMachine.fVideoCaptureEnabled)
    50595061            m->sv = SettingsVersion_v1_14;
    50605062    }
     
    50975099    if (m->sv < SettingsVersion_v1_12)
    50985100    {
    5099         // 4.1: Emulated USB devices.
    5100         if (hardwareMachine.fEmulatedUSBCardReader)
    5101             m->sv = SettingsVersion_v1_12;
    5102     }
    5103 
    5104     if (m->sv < SettingsVersion_v1_12)
    5105     {
    5106         // VirtualBox 4.1 adds PCI passthrough.
     5101        // VirtualBox 4.1 adds PCI passthrough and emulated USB Smart Card reader
    51075102        if (   hardwareMachine.pciAttachments.size()
    5108             || hardwareMachine.fVideoCaptureEnabled)
     5103            || hardwareMachine.fEmulatedUSBCardReader)
    51095104            m->sv = SettingsVersion_v1_12;
    51105105    }
Note: See TracChangeset for help on using the changeset viewer.

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