VirtualBox

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


Ignore:
Timestamp:
Jun 27, 2024 5:26:43 PM (7 months ago)
Author:
vboxsync
Message:

Video Recording/Main: Fixed (release) logging when recording is disabled. bugref:10650

File:
1 edited

Legend:

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

    r105009 r105065  
    135135
    136136    for (unsigned i = 0; i < RT_ELEMENTS(maRecordingEnabled); i++)
    137         maRecordingEnabled[i] = true;
     137        maRecordingEnabled[i] = false;
    138138#endif
    139139
     
    23052305int Display::i_recordingScreenUpdate(unsigned uScreenId, PRECORDINGVIDEOFRAME pFrame)
    23062306{
    2307     if (!maRecordingEnabled[uScreenId])
    2308         return VINF_NO_CHANGE;
    2309 
    2310     AssertPtr(mParent);
     2307    if (   uScreenId >= mcMonitors /* Might be SVGA_ID_INVALID. */
     2308        || !maRecordingEnabled[uScreenId])
     2309        return VINF_SUCCESS;
     2310
    23112311    RecordingContext *pCtx = mParent->i_recordingGetContext();
    23122312    if (!pCtx)
     
    23532353    RT_NOREF(fFlags);
    23542354
    2355 #if 0 /** @todo For whatever reason we always report SVGA_ID_INVALID here. Needs investigation. */
    2356     if (   uScreenId > mcMonitors /* Might be SVGA_ID_INVALID. */
     2355    if (   uScreenId >= mcMonitors /* Might be SVGA_ID_INVALID. */
    23572356        || !maRecordingEnabled[uScreenId])
    23582357        return VINF_SUCCESS;
    2359 #endif
    2360 
    2361     AssertPtr(mParent);
     2358
    23622359    RecordingContext *pCtx = mParent->i_recordingGetContext();
    23632360    if (!pCtx)
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