Changeset 65438 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jan 24, 2017 5:45:20 PM (8 years ago)
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DrvAudioVideoRec.cpp
r65429 r65438 698 698 case AVRECCONTAINERTYPE_WEBM: 699 699 { 700 WebMWriter::BlockData_Opus blockData = { abDst, cbDst };700 WebMWriter::BlockData_Opus blockData = { abDst, cbDst, RTTimeMilliTS() }; 701 701 rc = pSink->Con.WebM.pWebM->WriteBlock(pSink->Con.WebM.uTrack, &blockData, sizeof(blockData)); 702 702 AssertRC(rc); -
trunk/src/VBox/Main/src-client/VideoRec.cpp
r65435 r65438 518 518 519 519 #ifdef VBOX_WITH_AUDIO_VIDEOREC 520 ASMAtomicWriteBool(&pCtx->fHasAudioData, false); 520 if (fHasAudioData) 521 ASMAtomicWriteBool(&pCtx->fHasAudioData, false); 521 522 #endif 522 523 } … … 907 908 bool VideoRecIsEnabled(PVIDEORECCONTEXT pCtx) 908 909 { 909 RT_NOREF(pCtx); 910 if (!pCtx) 911 return false; 912 910 913 uint32_t enmState = ASMAtomicReadU32(&pCtx->enmState); 914 911 915 return ( enmState == VIDEORECSTS_IDLE 912 916 || enmState == VIDEORECSTS_BUSY); … … 924 928 bool VideoRecIsReady(PVIDEORECCONTEXT pCtx, uint32_t uScreen, uint64_t uTimeStampMs) 925 929 { 930 AssertPtrReturn(pCtx, false); 931 926 932 uint32_t enmState = ASMAtomicReadU32(&pCtx->enmState); 927 933 if (enmState != VIDEORECSTS_IDLE) … … 1118 1124 1119 1125 memcpy(pCtx->Audio.abBuf, pvData, RT_MIN(_64K, cbData)); 1126 1127 pCtx->Audio.cbBuf = cbData; 1120 1128 pCtx->Audio.uTimeStampMs = uTimeStampMs; 1121 1129
Note:
See TracChangeset
for help on using the changeset viewer.