Oops, we'd better unref these buffers to stop memory leaks
This commit is contained in:
parent
e4c3c600b9
commit
07a851c951
@ -194,8 +194,10 @@ Engine::State GstEngine::state() const {
|
||||
|
||||
void GstEngine::AddBufferToScope(GstBuffer* buf) {
|
||||
GstEnginePipeline* pipeline = qobject_cast<GstEnginePipeline*>(sender());
|
||||
if (!pipeline || pipeline != current_pipeline_.get())
|
||||
if (!pipeline || pipeline != current_pipeline_.get()) {
|
||||
gst_buffer_unref(buf);
|
||||
return;
|
||||
}
|
||||
|
||||
g_queue_push_tail(delayq_, buf);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user