mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-28 16:00:58 +02:00
libtriple: improve cPlayback()
* avoid race conditions by using a mutex to protect curr_pos, fixing
artefacts during timeshift playback
* make GetPosition() cheaper by interpolating end_pts and only fetching
the "real" end_pts after the file has grown by 10MB
Origin commit data
------------------
Branch: master
Commit: ec4a615036
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-01-02 (Sun, 02 Jan 2011)
Origin message was:
------------------
libtriple: improve cPlayback()
* avoid race conditions by using a mutex to protect curr_pos, fixing
artefacts during timeshift playback
* make GetPosition() cheaper by interpolating end_pts and only fetching
the "real" end_pts after the file has grown by 10MB
------------------
This commit was generated by Migit
This commit is contained in:
@@ -77,6 +77,7 @@ class cPlayback
|
||||
|
||||
int64_t pts_start;
|
||||
int64_t pts_end;
|
||||
int64_t _pts_end; /* last good endpts */
|
||||
int64_t pts_curr;
|
||||
int64_t get_pts(uint8_t *p, bool pes, int bufsize);
|
||||
|
||||
|
Reference in New Issue
Block a user