From f4ad6e08580b8b755b3761d67c60a5498264cda0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 12 Mar 2013 19:35:39 +0100 Subject: [PATCH] omxvideodec: Make sure the buffer is released to the pool if it's not the one we wanted --- omx/gstomxvideodec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c index 77e159c..6e21fa2 100644 --- a/omx/gstomxvideodec.c +++ b/omx/gstomxvideodec.c @@ -504,6 +504,7 @@ gst_omx_buffer_pool_acquire_buffer (GstBufferPool * bpool, return ret; if (*buffer == buf) break; + gst_object_replace ((GstObject **) & (*buffer)->pool, (GstObject *) pool); gst_buffer_unref (*buffer); *buffer = NULL; } -- 2.7.4