VirtualBox

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


Ignore:
Timestamp:
Sep 21, 2017 9:44:23 AM (7 years ago)
Author:
vboxsync
Message:

VideoRec: Only send CrOGL frames if video recording is enabled.

File:
1 edited

Legend:

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

    r68803 r68808  
    38093809    Assert(mfCrOglVideoRecState == CRVREC_STATE_SUBMITTED);
    38103810# ifdef VBOX_WITH_VIDEOREC
    3811     int rc = VideoRecSendVideoFrame(mpVideoRecCtx, uScreen, x, y,
    3812                                     uPixelFormat,
    3813                                     uBitsPerPixel, uBytesPerLine,
    3814                                     uGuestWidth, uGuestHeight,
    3815                                     pu8BufferAddress, u64Timestamp);
    3816     NOREF(rc);
    3817     Assert(rc == VINF_SUCCESS /* || rc == VERR_TRY_AGAIN || rc == VINF_TRY_AGAIN*/);
     3811    if (   VideoRecIsActive(mpVideoRecCtx)
     3812        && VideoRecGetEnabled(&mVideoRecCfg) & VIDEORECFEATURE_VIDEO)
     3813    {
     3814        int rc2 = VideoRecSendVideoFrame(mpVideoRecCtx, uScreen, x, y,
     3815                                         uPixelFormat,
     3816                                         uBitsPerPixel, uBytesPerLine,
     3817                                         uGuestWidth, uGuestHeight,
     3818                                         pu8BufferAddress, u64Timestamp);
     3819        RT_NOREF(rc2);
     3820        Assert(rc2 == VINF_SUCCESS /* || rc == VERR_TRY_AGAIN || rc == VINF_TRY_AGAIN*/);
     3821    }
    38183822# else
    38193823    RT_NOREF(uScreen, x, y, uPixelFormat, \
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