mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-05 15:30:00 +01:00
oops... restore time comparator on play
This commit is contained in:
@@ -396,8 +396,16 @@ void MediaPlayer::play(bool on)
|
||||
#endif
|
||||
|
||||
// reset time counter on stop
|
||||
if (!on)
|
||||
if (on)
|
||||
{
|
||||
if (rate_ > 0)
|
||||
TimeComparator_ = &is_higher;
|
||||
else
|
||||
TimeComparator_ = &is_lower;
|
||||
}
|
||||
else
|
||||
timecount_.reset();
|
||||
|
||||
}
|
||||
|
||||
bool MediaPlayer::isPlaying(bool testpipeline) const
|
||||
@@ -667,11 +675,6 @@ void MediaPlayer::update()
|
||||
// read next in stack
|
||||
vframe_read_index_ = (vframe_read_index_ +1) % N_VFRAME;
|
||||
|
||||
if (rate_ > 0)
|
||||
TimeComparator_ = &is_higher;
|
||||
else
|
||||
TimeComparator_ = &is_lower;
|
||||
|
||||
}
|
||||
|
||||
vframe_lock_[i].unlock();
|
||||
|
||||
Reference in New Issue
Block a user