VirtualBox

Changeset 104751 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 22, 2024 9:46:55 AM (7 months ago)
Author:
vboxsync
Message:

Main/Recording: Don't (debug) assert in RecordingStream::SendVideoFrame() when sending a video frame too early or redundantly; just return VINF_RECORDING_THROTTLED. Can happen when debugging VBoxSVC or when invalid settings are being used. bugref:10603

File:
1 edited

Legend:

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

    r98278 r104751  
    419419 * Sends a raw (e.g. not yet encoded) video frame to the recording stream.
    420420 *
    421  * @returns VBox status code. Will return VINF_RECORDING_LIMIT_REACHED if the stream's recording
    422  *          limit has been reached or VINF_RECORDING_THROTTLED if the frame is too early for the current
    423  *         FPS setting.
     421 * @returns VBox status code.
     422 * @retval  VINF_RECORDING_LIMIT_REACHED if the stream's recording limit has been reached.
     423 * @retval  VINF_RECORDING_THROTTLED if the frame is too early for the current FPS setting.
    424424 * @param   x                   Upper left (X) coordinate where the video frame starts.
    425425 * @param   y                   Upper left (Y) coordinate where the video frame starts.
     
    436436{
    437437    AssertPtrReturn(m_pCtx, VERR_WRONG_ORDER);
    438     AssertReturn(NeedsUpdate(msTimestamp), VINF_RECORDING_THROTTLED); /* We ASSUME that the caller checked that first. */
     438
     439    if RT_UNLIKELY(!NeedsUpdate(msTimestamp))
     440        return VINF_RECORDING_THROTTLED;
    439441
    440442    lock();
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