, _video (true)
, _audio (true)
, _subtitles (true)
- , _have_valid_decoders (false)
+ , _have_valid_pieces (false)
, _position (0)
, _audio_buffers (MAX_AUDIO_CHANNELS, 0)
, _last_video (0)
void
Player::process_video (shared_ptr<Piece> piece, shared_ptr<const Image> image, bool same, shared_ptr<Subtitle> sub, Time time)
{
- time += piece->start ();
+ time += piece->content->start ();
Video (image, same, sub, time);
}
be added to any more, so it can be emitted.
*/
- time += piece->start ();
+ time += piece->content->start ();
if (time > _next_audio) {
/* We can emit some audio from our buffers */
}
/** @return true on error */
-bool
+void
Player::seek (Time t)
{
if (!_have_valid_pieces) {
}
if (_pieces.empty ()) {
- return true;
+ return;
}
/* XXX: don't seek audio because we don't need to... */
-
- return false;
}
{
bool operator() (shared_ptr<Content> a, shared_ptr<Content> b)
{
- return a->time() < b->time();
+ return a->start() < b->start();
}
};