VirtualBox

Changeset 74911 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Oct 18, 2018 9:44:09 AM (6 years ago)
Author:
vboxsync
Message:

VideoRec/WebMWriter: Initialize the segment's (absolute) starting timestamp on first block write.

File:
1 edited

Legend:

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

    r74903 r74911  
    432432        const WebMTimecodeAbs tcAbsPTS = a_pBlock->Data.tcAbsPTSMs;
    433433
     434        /* Check if the current segment already has been started.
     435         * If not, use the current (absolute) time stamp for it. */
     436        if (CurSeg.tcAbsStartMs == 0)
     437        {
     438            CurSeg.tcAbsStartMs = tcAbsPTS;
     439            LogFunc(("Segment started @ %RU64ms\n", CurSeg.tcAbsStartMs));
     440        }
     441
    434442        /* See if we already have an entry for the specified timecode in our queue. */
    435443        WebMBlockMap::iterator itQueue = CurSeg.queueBlocks.Map.find(tcAbsPTS);
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