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