Don't prune the scope while playback is paused

This commit is contained in:
David Sansome 2010-06-25 08:48:19 +00:00
parent cc6413ab0e
commit a0f9c81891
1 changed files with 5 additions and 0 deletions

View File

@ -529,6 +529,9 @@ void GstEngine::Pause() {
if ( current_pipeline_->state() == GST_STATE_PLAYING ) {
current_pipeline_->SetState(GST_STATE_PAUSED);
emit StateChanged(Engine::Paused);
killTimer(timer_id_);
timer_id_ = -1;
}
}
@ -539,6 +542,8 @@ void GstEngine::Unpause() {
if ( current_pipeline_->state() == GST_STATE_PAUSED ) {
current_pipeline_->SetState(GST_STATE_PLAYING);
emit StateChanged(Engine::Playing);
timer_id_ = startTimer(kTimerInterval);
}
}