omxvideodec: Make sure the buffer is released to the pool if it's not the one we...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 12 Mar 2013 18:35:39 +0000 (19:35 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 13 Mar 2013 08:37:58 +0000 (09:37 +0100)
omx/gstomxvideodec.c

index 77e159c..6e21fa2 100644 (file)
@@ -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;
     }