VirtualBox

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


Ignore:
Timestamp:
Jan 24, 2017 5:45:20 PM (8 years ago)
Author:
vboxsync
Message:

VideoRec: Update.

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

Legend:

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

    r65429 r65438  
    698698                case AVRECCONTAINERTYPE_WEBM:
    699699                {
    700                     WebMWriter::BlockData_Opus blockData = { abDst, cbDst };
     700                    WebMWriter::BlockData_Opus blockData = { abDst, cbDst, RTTimeMilliTS() };
    701701                    rc = pSink->Con.WebM.pWebM->WriteBlock(pSink->Con.WebM.uTrack, &blockData, sizeof(blockData));
    702702                    AssertRC(rc);
  • trunk/src/VBox/Main/src-client/VideoRec.cpp

    r65435 r65438  
    518518
    519519#ifdef VBOX_WITH_AUDIO_VIDEOREC
    520         ASMAtomicWriteBool(&pCtx->fHasAudioData, false);
     520        if (fHasAudioData)
     521            ASMAtomicWriteBool(&pCtx->fHasAudioData, false);
    521522#endif
    522523    }
     
    907908bool VideoRecIsEnabled(PVIDEORECCONTEXT pCtx)
    908909{
    909     RT_NOREF(pCtx);
     910    if (!pCtx)
     911        return false;
     912
    910913    uint32_t enmState = ASMAtomicReadU32(&pCtx->enmState);
     914
    911915    return (   enmState == VIDEORECSTS_IDLE
    912916            || enmState == VIDEORECSTS_BUSY);
     
    924928bool VideoRecIsReady(PVIDEORECCONTEXT pCtx, uint32_t uScreen, uint64_t uTimeStampMs)
    925929{
     930    AssertPtrReturn(pCtx, false);
     931
    926932    uint32_t enmState = ASMAtomicReadU32(&pCtx->enmState);
    927933    if (enmState != VIDEORECSTS_IDLE)
     
    11181124
    11191125    memcpy(pCtx->Audio.abBuf, pvData, RT_MIN(_64K, cbData));
     1126
     1127    pCtx->Audio.cbBuf        = cbData;
    11201128    pCtx->Audio.uTimeStampMs = uTimeStampMs;
    11211129
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