Changeset 46667 in vbox for trunk/src/VBox/Main/xml
- Timestamp:
- Jun 19, 2013 3:30:23 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 86558
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xml/Settings.cpp
r46367 r46667 1754 1754 ulVideoCaptureVertRes(768), 1755 1755 ulVideoCaptureRate(512), 1756 ulVideoCaptureF ps(25),1756 ulVideoCaptureFPS(25), 1757 1757 fVideoCaptureEnabled(false), 1758 1758 u64VideoCaptureScreens(UINT64_C(0xffffffffffffffff)), 1759 strVideoCaptureFile(" Test.webm"),1759 strVideoCaptureFile(""), 1760 1760 firmwareType(FirmwareType_BIOS), 1761 1761 pointingHIDType(PointingHIDType_PS2Mouse), … … 1832 1832 && (ulVideoCaptureVertRes == h.ulVideoCaptureVertRes) 1833 1833 && (ulVideoCaptureRate == h.ulVideoCaptureRate) 1834 && (ulVideoCaptureF ps == h.ulVideoCaptureFps)1834 && (ulVideoCaptureFPS == h.ulVideoCaptureFPS) 1835 1835 && (firmwareType == h.firmwareType) 1836 1836 && (pointingHIDType == h.pointingHIDType) … … 2731 2731 pelmHwChild->getAttributeValue("enabled", hw.fVideoCaptureEnabled); 2732 2732 pelmHwChild->getAttributeValue("screens", hw.u64VideoCaptureScreens); 2733 pelmHwChild->getAttributeValue ("file",hw.strVideoCaptureFile);2733 pelmHwChild->getAttributeValuePath("file", hw.strVideoCaptureFile); 2734 2734 pelmHwChild->getAttributeValue("horzRes", hw.ulVideoCaptureHorzRes); 2735 2735 pelmHwChild->getAttributeValue("vertRes", hw.ulVideoCaptureVertRes); 2736 2736 pelmHwChild->getAttributeValue("rate", hw.ulVideoCaptureRate); 2737 pelmHwChild->getAttributeValue("fps", hw.ulVideoCaptureF ps);2737 pelmHwChild->getAttributeValue("fps", hw.ulVideoCaptureFPS); 2738 2738 } 2739 2739 else if (pelmHwChild->nameEquals("RemoteDisplay")) … … 3916 3916 xml::ElementNode *pelmVideoCapture = pelmHardware->createChild("VideoCapture"); 3917 3917 3918 if (m->sv >= SettingsVersion_v1_1 2)3918 if (m->sv >= SettingsVersion_v1_14) 3919 3919 { 3920 3920 pelmVideoCapture->setAttribute("enabled", hw.fVideoCaptureEnabled); 3921 3921 pelmVideoCapture->setAttribute("screens", hw.u64VideoCaptureScreens); 3922 pelmVideoCapture->setAttribute("file", hw.strVideoCaptureFile); 3922 if (!hw.strVideoCaptureFile.isEmpty()) 3923 pelmVideoCapture->setAttributePath("file", hw.strVideoCaptureFile); 3923 3924 pelmVideoCapture->setAttribute("horzRes", hw.ulVideoCaptureHorzRes); 3924 3925 pelmVideoCapture->setAttribute("vertRes", hw.ulVideoCaptureVertRes); 3925 3926 pelmVideoCapture->setAttribute("rate", hw.ulVideoCaptureRate); 3926 pelmVideoCapture->setAttribute("fps", hw.ulVideoCaptureF ps);3927 pelmVideoCapture->setAttribute("fps", hw.ulVideoCaptureFPS); 3927 3928 } 3928 3929 … … 5052 5053 { 5053 5054 // VirtualBox 4.3 adds default frontend setting, graphics controller 5054 // setting, explicit long mode setting .5055 // setting, explicit long mode setting and video capturing. 5055 5056 if ( !hardwareMachine.strDefaultFrontend.isEmpty() 5056 5057 || hardwareMachine.graphicsControllerType != GraphicsControllerType_VBoxVGA 5057 5058 || hardwareMachine.enmLongMode != Hardware::LongMode_Legacy 5058 || machineUserData.ovIcon.length() > 0) 5059 || machineUserData.ovIcon.length() > 0 5060 || hardwareMachine.fVideoCaptureEnabled) 5059 5061 m->sv = SettingsVersion_v1_14; 5060 5062 } … … 5097 5099 if (m->sv < SettingsVersion_v1_12) 5098 5100 { 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 5107 5102 if ( hardwareMachine.pciAttachments.size() 5108 || hardwareMachine.f VideoCaptureEnabled)5103 || hardwareMachine.fEmulatedUSBCardReader) 5109 5104 m->sv = SettingsVersion_v1_12; 5110 5105 }
Note:
See TracChangeset
for help on using the changeset viewer.