From: Sebastian Dröge Date: Tue, 12 Mar 2013 18:35:39 +0000 (+0100) Subject: omxvideodec: Make sure the buffer is released to the pool if it's not the one we... X-Git-Tag: 1.19.3~501^2~617 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f4ad6e08580b8b755b3761d67c60a5498264cda0;p=platform%2Fupstream%2Fgstreamer.git omxvideodec: Make sure the buffer is released to the pool if it's not the one we wanted --- 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; }