VirtualBox

Changeset 95662 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jul 15, 2022 1:26:12 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
152309
Message:

Recording/Main: Fixed migration from older settings (< 1.19). ​bugref:9286

File:
1 edited

Legend:

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

    r95654 r95662  
    60486048        elmRecording.getAttributeValue("screens",   cScreens);
    60496049
    6050         /* Propagate the settings from screen 0 to all other screens (= monitors). */
     6050        /* Note: For settings < 1.19 the "screens" attribute is a bit field for all screens
     6051         *       which are ENABLED for recording. The settings for recording are for all the same though. */
    60516052        for (unsigned i = 0; i <  cScreens; i++)
    60526053        {
    6053             /* Add screen i to config in any case. */
     6054            /* Apply settings of screen 0 to screen i and enable it. */
    60546055            recording.mapScreens[i] = screen0;
    60556056
     
    63826383            else if (pelmMachineChild->nameEquals("Autostart"))
    63836384                readAutostart(*pelmMachineChild, autostart);
    6384             else if (pelmMachineChild->nameEquals("Recording")) /* Only exists for settings >= 1.19 (VBox 7.0). */
    6385                 readRecordingSettings(*pelmMachineChild, recordingSettings);
    63866385            else if (pelmMachineChild->nameEquals("Groups"))
    63876386                readGroups(*pelmMachineChild, machineUserData.llGroups);
     6387
     6388            if (   m->sv >= SettingsVersion_v1_14
     6389                && m->sv <  SettingsVersion_v1_19
     6390                && pelmMachineChild->nameEquals("VideoCapture"))   /* For settings >= 1.14 (< VBox 7.0). */
     6391                readRecordingSettings(*pelmMachineChild, recordingSettings);
     6392            else if (   m->sv >= SettingsVersion_v1_19
     6393                     && pelmMachineChild->nameEquals("Recording")) /* Only exists for settings >= 1.19 (VBox 7.0). */
     6394                readRecordingSettings(*pelmMachineChild, recordingSettings);
    63886395        }
    63896396
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