mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +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
------------------
Commit: ec2ad396c0
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 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