VirtualBox

Changeset 68835 in vbox


Ignore:
Timestamp:
Sep 22, 2017 3:42:52 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
118089
Message:

VideoRec: Set sensible defaults.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r68809 r68835  
    24522452    size_t pos = 0;
    24532453
    2454     /* By default we only enable video recording for now.
    2455      * Audio support is considered as being experimental. There be dragons! */
     2454    /*
     2455     * Set sensible defaults.
     2456     */
    24562457    mVideoRecCfg.Video.fEnabled  = true;
     2458
     2459    if (!mVideoRecCfg.Video.uFPS) /* Prevent division by zero. */
     2460        mVideoRecCfg.Video.uFPS = 15;
     2461
     2462#ifdef VBOX_WITH_LIBVPX
     2463    mVideoRecCfg.Video.Codec.VPX.uEncoderDeadline = 1000000 / mVideoRecCfg.Video.uFPS;
     2464#endif
     2465
     2466    /* Note: Audio support is considered as being experimental.
     2467     * There be dragons! */
    24572468#ifdef VBOX_WITH_AUDIO_VIDEOREC
    24582469    mVideoRecCfg.Audio.fEnabled  = true;
     
    24622473    mVideoRecCfg.Audio.cChannels = 2;
    24632474#endif
    2464 
    2465     if (!mVideoRecCfg.Video.uFPS) /* Prevent division by zero. */
    2466         mVideoRecCfg.Video.uFPS = 30;
    24672475
    24682476    /*
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