VirtualBox

Changeset 79363 in vbox for trunk


Ignore:
Timestamp:
Jun 26, 2019 3:25:43 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
131596
Message:

Frontends/VBoxManage: Fix configuring the recording feature. It errored out due to using the wrong machine object. Restore the old command as an alias, it doesn't cost much and avoids annoying users who use the command to enable recording which worked in 5.2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp

    r78995 r79363  
    16491649            else
    16501650                uuid = Guid().toString();
    1651             CHECK_ERROR(machine, MountMedium(Bstr("IDE Controller"), 1, 0, uuid, FALSE /* aForce */));
     1651            CHECK_ERROR(sessionMachine, MountMedium(Bstr("IDE Controller"), 1, 0, uuid, FALSE /* aForce */));
    16521652        }
    16531653        else if (!strcmp(a->argv[1], "floppyattach"))
     
    17051705            }
    17061706            floppyMedium->COMGETTER(Id)(uuid.asOutParam());
    1707             CHECK_ERROR(machine, MountMedium(Bstr("Floppy Controller"), 0, 0, uuid, FALSE /* aForce */));
     1707            CHECK_ERROR(sessionMachine, MountMedium(Bstr("Floppy Controller"), 0, 0, uuid, FALSE /* aForce */));
    17081708        }
    17091709#endif /* obsolete dvdattach/floppyattach */
     
    18551855        }
    18561856#ifdef VBOX_WITH_RECORDING
    1857         else if (!strcmp(a->argv[1], "recording"))
     1857        else if (   !strcmp(a->argv[1], "recording")
     1858                 || !strcmp(a->argv[1], "videocap") /* legacy command */)
    18581859        {
    18591860            if (a->argc < 3)
     
    18651866
    18661867            ComPtr<IRecordingSettings> recordingSettings;
    1867             CHECK_ERROR_BREAK(machine, COMGETTER(RecordingSettings)(recordingSettings.asOutParam()));
     1868            CHECK_ERROR_BREAK(sessionMachine, COMGETTER(RecordingSettings)(recordingSettings.asOutParam()));
    18681869
    18691870            SafeIfaceArray <IRecordingScreenSettings> saRecordingScreenScreens;
     
    18871888            {
    18881889                ULONG cMonitors = 64;
    1889                 CHECK_ERROR_BREAK(machine, COMGETTER(MonitorCount)(&cMonitors));
     1890                CHECK_ERROR_BREAK(sessionMachine, COMGETTER(MonitorCount)(&cMonitors));
    18901891                com::SafeArray<BOOL> saScreens(cMonitors);
    18911892                if (   a->argc == 4
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