[mythtv] Frames Played issues
Peter Bennett
pb.mythtv at gmail.com
Mon Feb 10 13:54:35 UTC 2020
On 2/10/20 1:36 AM, Mark Spieth wrote:
>
> On 10/02/2020 2:37 pm, Peter Bennett wrote:
>>
>>
>> On 2/9/20 10:26 PM, Mark Spieth wrote:
>>> I still get some issues when timestamps reset/wrap. This all assumes
>>> timestamps are monotonic increasing which is not necessarily true.
>>
>> My intention was that resets , wraps and any other anomalies would be
>> handled in avsync here -
>>
>> // sanity check - reset m_rtcBase if time codes have gone crazy.
>> if ((lateness > AVSYNC_MAX_LATE || lateness < -
>> AVSYNC_MAX_LATE))
>> ......
>>
>> Of course, it may not be working correctly or as well as I hoped.
>>
> How does this affect timestamp derived duration?
>
> Mark
>
That code resets rtcbase, and the next time in the loop it recalculates
rtcbase so that it continues to have a valid time base for showing
frames. Duration will be recalculated from TranslatePositionFrameToMs.
This assumes TranslatePositionFrameToMs returns a valid result in this case.
Peter
More information about the mythtv-dev
mailing list