VirtualBox

Changeset 69724 in vbox for trunk


Ignore:
Timestamp:
Nov 17, 2017 1:20:17 PM (7 years ago)
Author:
vboxsync
Message:

VideoRec: Added a bit more error logging going into the release log.

Location:
trunk/src/VBox/Main/src-client
Files:
2 edited

Legend:

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

    r68990 r69724  
    27652765            rc = rc2;
    27662766    }
     2767
     2768    if (RT_FAILURE(rc))
     2769        LogRel(("VideoRec: Failed to start video recording (%Rrc)\n", rc));
     2770
    27672771    return rc;
    27682772}
  • trunk/src/VBox/Main/src-client/VideoRec.cpp

    r69683 r69724  
    207207        bool                fHasVideoData;
    208208#endif
     209        /** Number of failed attempts to encode the current video frame in a row. */
     210        uint16_t            cFailedEncodingFrames;
    209211    } Video;
    210212} VIDEORECSTREAM, *PVIDEORECSTREAM;
     
    10441046
    10451047    pStream->pCtx          = pCtx;
     1048
    10461049    /** @todo Make the following parameters configurable on a per-stream basis? */
    1047     pStream->Video.uWidth  = pCfg->Video.uWidth;
    1048     pStream->Video.uHeight = pCfg->Video.uHeight;
     1050    pStream->Video.uWidth                = pCfg->Video.uWidth;
     1051    pStream->Video.uHeight               = pCfg->Video.uHeight;
     1052    pStream->Video.cFailedEncodingFrames = 0;
    10491053
    10501054#ifndef VBOX_VIDEOREC_WITH_QUEUE
     
    11741178    if (rcv != VPX_CODEC_OK)
    11751179    {
    1176         LogFlow(("Failed to initialize VP8 encoder: %s\n", vpx_codec_err_to_string(rcv)));
     1180        LogRel(("VideoRec: Failed to initialize VP8 encoder: %s\n", vpx_codec_err_to_string(rcv)));
    11771181        return VERR_INVALID_PARAMETER;
    11781182    }
     
    11801184    if (!vpx_img_alloc(&pVC->VPX.RawImage, VPX_IMG_FMT_I420, pCfg->Video.uWidth, pCfg->Video.uHeight, 1))
    11811185    {
    1182         LogFlow(("Failed to allocate image %RU32x%RU32\n", pCfg->Video.uWidth, pCfg->Video.uHeight));
     1186        LogRel(("VideoRec: Failed to allocate image %RU32x%RU32\n", pCfg->Video.uWidth, pCfg->Video.uHeight));
    11831187        return VERR_NO_MEMORY;
    11841188    }
     
    13381342    if (rcv != VPX_CODEC_OK)
    13391343    {
    1340         LogFunc(("Failed to encode video frame: %s\n", vpx_codec_err_to_string(rcv)));
    1341         return VERR_GENERAL_FAILURE;
    1342     }
     1344        if (pStream->Video.cFailedEncodingFrames++ < 64)
     1345        {
     1346            LogRel(("VideoRec: Failed to encode video frame: %s\n", vpx_codec_err_to_string(rcv)));
     1347            return VERR_GENERAL_FAILURE;
     1348        }
     1349    }
     1350
     1351    pStream->Video.cFailedEncodingFrames = 0;
    13431352
    13441353    vpx_codec_iter_t iter = NULL;
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