Project

General

Profile

Actions

Support Request #93

closed

Problems setting the offset

Added by hidden over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Customer:
BOSCH
Department:
CC-DA/ESI
Requester's Priority:
Normal
Support Level:
3rd Level
Resolution:
Not Supported Scope
Platform:
Windows 7 64bit
Topic:
StreamingLib::Writer
FAQ Links:

Description

Supportanfrage

Wir stoßen auf Probleme mit dem Workaround, solange #26928:[IADTFFileWriter]: Provide option to set offset - {HD - TicketID 23542LIHKL} nicht umgesetzt ist.

Es gibt einen "Workaround", den EB damals geliefert hat.
Dieser hat aber zur Folge, dass der erste Zeitstempel vom Ziel-DAT zum Original-DAT verändert wird.

Macht man den Workaround nicht, können auch neg. Zeitstempel auftreten.

Der Workaround sieht so aus:

while (IS_OK(m_datFileReader_p->Read(&l_pDataBlock)))   // Iterate over all data blocks (this means independent of which stream they belong to)
{
    tInt64 l_blkPos = m_datFileReader_p->GetCurrentBlockPos();

    // Set the initial Offset to the 1st data block (workaround from EB)
    if (1 == l_blkPos)
    {
        l_pDataBlock->SetFileTime(l_mediaDesc_p->tsOffset);
    }
    ...
}

Lösung

Das Recorder Property use_sample_time ist auf true gesetzt.
Das erklärt die negativen Zeitstempel bei der Offsetkorrektur.

Dieses Property darf nicht verwendet werden für den Anwendungsfall, dies ist auch so in der Doku vermerkt.

Ticket wurde entsprechend bewertet.


Files

Actions

Also available in: Atom PDF