Fix a problem where the scope would apperar to freeze for a few seconds when changing tracks.

This commit is contained in:
David Sansome 2010-04-12 16:39:48 +00:00
parent 505bace684
commit e4c3c600b9
1 changed files with 4 additions and 0 deletions

View File

@ -193,6 +193,10 @@ Engine::State GstEngine::state() const {
}
void GstEngine::AddBufferToScope(GstBuffer* buf) {
GstEnginePipeline* pipeline = qobject_cast<GstEnginePipeline*>(sender());
if (!pipeline || pipeline != current_pipeline_.get())
return;
g_queue_push_tail(delayq_, buf);
}