VirtualBox

Changeset 68958 in vbox for trunk


Ignore:
Timestamp:
Oct 2, 2017 4:46:26 PM (7 years ago)
Author:
vboxsync
Message:

VideoRec: Audio recording is now disabled by default for new VMs or if the video capturing options don't explicitly enable it.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp

    r68877 r68958  
    129129        values["false"] = false;
    130130        /* Return known value or true otherwise: */
    131         return values.value(strValue, true);
     131        return values.value(strValue, false);
    132132    }
    133133
     
    149149        values[true] = "true";
    150150        values[false] = "false";
    151         /* Return known value or "true" otherwise: */
    152         return values.value(fValue, "true");
     151        /* Return known value or "false" otherwise: */
     152        return values.value(fValue, "false");
    153153    }
    154154
     
    198198        int iIndex = aKeys.indexOf(enmOption);
    199199        if (iIndex == -1)
    200             return true;
     200            return false; /* If option is missing, assume disabled (false). */
    201201        return aValues.value(iIndex);
    202202    }
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r68947 r68958  
    25592559#endif
    25602560
    2561     /* Note: Audio support is considered as being experimental.
     2561    /* Note: Audio support is considered as being experimental, thus it's disabled by default.
    25622562     * There be dragons! */
    25632563#ifdef VBOX_WITH_AUDIO_VIDEOREC
    2564     pCfg->Audio.fEnabled  = pCfg->fEnabled;
     2564    pCfg->Audio.fEnabled  = false;
    25652565    /* By default we use 48kHz, 16-bit, stereo for the audio track. */
    25662566    pCfg->Audio.uHz       = 48000;
     
    26062606        {
    26072607#ifdef VBOX_WITH_AUDIO_VIDEOREC
    2608             if (value.compare("false", Utf8Str::CaseInsensitive) == 0)
     2608            if (value.compare("true", Utf8Str::CaseInsensitive) == 0)
    26092609            {
    2610                 pCfg->Audio.fEnabled = false;
     2610                pCfg->Audio.fEnabled = true;
     2611
     2612            }
     2613            else
    26112614                LogRel(("VideoRec: Only video will be recorded\n"));
    2612             }
    26132615#endif
    26142616        }
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