VirtualBox

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


Ignore:
Timestamp:
Jul 4, 2024 9:01:06 AM (7 months ago)
Author:
vboxsync
Message:

Video Recording/Main: Fixed too strict debug assertions. bugref:10650

File:
1 edited

Legend:

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

    r105095 r105135  
    23332333int Display::i_recordingScreenUpdate(unsigned uScreenId, uint32_t x, uint32_t y, uint32_t w, uint32_t h)
    23342334{
     2335    RecordingContext *pCtx = Recording.pCtx;
     2336
     2337    if (!pCtx->IsFeatureEnabled(uScreenId, RecordingFeature_Video))
     2338        return VINF_SUCCESS;
     2339
    23352340    BYTE *pbAddress;
    23362341    ULONG ulWidth;
     
    23392344    ULONG ulBytesPerLine;
    23402345
    2341     if (uScreenId == VBOX_VIDEO_PRIMARY_SCREEN) /* Take a shortcut for the primary screen. */
     2346    if (   uScreenId == VBOX_VIDEO_PRIMARY_SCREEN /* Take a shortcut for the primary screen. */
     2347        && mpDrv)
    23422348    {
    23432349        pbAddress      = mpDrv->IConnector.pbData;
     
    23602366    Log2Func(("uScreenId=%u, pbAddress=%p, ulWidth=%RU32, ulHeight=%RU32, ulBitsPerPixel=%RU32\n",
    23612367              uScreenId, pbAddress, ulWidth, ulHeight, ulBitsPerPixel));
    2362 
    2363     AssertPtr(pbAddress);
    2364     Assert(ulWidth);
    2365     Assert(ulHeight);
    2366     Assert(ulBitsPerPixel);
    2367     Assert(ulBytesPerLine);
    23682368
    23692369    return i_recordingScreenUpdate(uScreenId,
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