Commit Graph

12 Commits

Author SHA1 Message Date
Stefan Seyfried
9222f4d5dc libtriple: improve audio stream handling in cPlayback()
use a c++ map instead of arrays to store audio stream data
Side effect: audio streams as returned by findAllPids() are now
sorted by pid, helping default selection for MPEG and VDR streams
2011-11-06 16:13:07 +01:00
Stefan Seyfried
56902846da libtriple: fix seeking in cPlayback if there's a PTS overflow 2011-11-06 16:13:07 +01:00
Stefan Seyfried
9803550595 libtriple: sync cPlayback with libcoolstream changes 2011-11-06 16:13:06 +01:00
Stefan Seyfried
511a57e10e libtriple: convert cPlayback to lt_debug/lt_info 2011-11-06 16:13:06 +01:00
Stefan Seyfried
45e7d0d9fa libtriple: improve debug architecture
every libtriple module can have its debug output enabled separately
by exporting the TRIPLE_DEBUG variable
2011-11-06 16:13:06 +01:00
Stefan Seyfried
ec4a615036 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
2011-11-06 16:13:05 +01:00
Stefan Seyfried
67fdebfb32 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
2011-11-06 16:13:04 +01:00
Stefan Seyfried
9c10719f91 libtriple: fix compiler warnings in playback_td 2011-11-06 16:13:03 +01:00
Stefan Seyfried
c0a18f269a libtriple: cPlayback: improve get_pts
* add the buffer size to the call to avoid overflows
* extract PTS also from MPEG1 packets
2011-11-06 16:13:03 +01:00
Stefan Seyfried
64dc2ae85c libtriple: implement mpeg/vdr playback 2011-11-06 16:13:03 +01:00
Stefan Seyfried
fe6666cda7 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.
2011-11-06 16:13:03 +01:00
Stefan Seyfried
7076b238ee libtriple: implement working cPlayback class
no fast forward, no mpeg playback (yet ;)
2011-11-06 16:13:03 +01:00