VirtualBox

Ignore:
Timestamp:
Apr 25, 2018 1:28:31 PM (7 years ago)
Author:
vboxsync
Message:

VideoRec/Main: Simplified recoding state checking by only using the IMachine::VideoCaptureEnabled getter. A bit of renaming.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/VideoRec.h

    r70035 r72014  
    5858{
    5959    VIDEORECCFG(void)
    60         : fEnabled(false)
    61         , enmDst(VIDEORECDEST_INVALID)
     60        :  enmDst(VIDEORECDEST_INVALID)
    6261        , uMaxTimeS(0)
    6362    {
     
    6968
    7069    /** Whether recording is enabled or not (as a whole). */
    71     bool                    fEnabled;
     70    //bool                    fEnabled;
    7271    /** Array of all screens containing whether they're enabled
    7372     *  for recording or not.  */
     
    143142    VIDEORECCFG& operator=(const VIDEORECCFG &that)
    144143    {
    145         fEnabled = that.fEnabled;
    146 
    147144        aScreens.resize(that.aScreens.size());
    148145        for (size_t i = 0; i < that.aScreens.size(); ++i)
     
    179176int VideoRecStreamUninit(PVIDEORECCONTEXT pCtx, uint32_t uScreen);
    180177
    181 VIDEORECFEATURES VideoRecGetEnabled(PVIDEORECCFG pCfg);
     178VIDEORECFEATURES VideoRecGetFeatures(PVIDEORECCFG pCfg);
    182179
    183180int VideoRecSendAudioFrame(PVIDEORECCONTEXT pCtx, const void *pvData, size_t cbData, uint64_t uTimestampMs);
     
    187184                            uint8_t *puSrcData, uint64_t uTimeStampMs);
    188185bool VideoRecIsReady(PVIDEORECCONTEXT pCtx, uint32_t uScreen, uint64_t uTimeStampMs);
    189 bool VideoRecIsActive(PVIDEORECCONTEXT pCtx);
     186bool VideoRecIsStarted(PVIDEORECCONTEXT pCtx);
    190187bool VideoRecIsLimitReached(PVIDEORECCONTEXT pCtx, uint32_t uScreen, uint64_t tsNowMs);
    191188
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