Commit Graph

7 Commits

Author SHA1 Message Date
Stefan Seyfried
ec2ad396c0 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
2012-04-17 19:33:45 +02:00
Stefan Seyfried
a07e6a3a30 libtriple: add support for MPEG1 files to cPlayback
Now we can play the "Warriors of the Net" clip :-)
http://ftp.sunet.se/pub/tv+movies/warriors/warriors-700-VBR.mpg
2012-04-17 19:33:43 +02:00
Stefan Seyfried
d95e1bbaf3 libtriple: fix compiler warnings in playback_td 2012-04-17 19:33:43 +02:00
Stefan Seyfried
f50f68677f libtriple: cPlayback: improve get_pts
* add the buffer size to the call to avoid overflows
* extract PTS also from MPEG1 packets
2012-04-17 19:33:43 +02:00
Stefan Seyfried
2698788643 libtriple: implement mpeg/vdr playback 2012-04-17 19:33:43 +02:00
Stefan Seyfried
a3440d19df libtriple: implement fast forward in cPlayback()
First try at implementing fast forward. Needs more love.
Reverse does not work yet, setting speed to negative values
right now simply resets to "play" mode.
2012-04-17 19:33:43 +02:00
Stefan Seyfried
912b736dee libtriple: implement working cPlayback class
no fast forward, no mpeg playback (yet ;)
2012-04-17 19:33:42 +02:00