omxvideodec: Make sure the buffer is released to the pool if it's not the one we wanted

This commit is contained in:
Sebastian Dröge 2013-03-12 19:35:39 +01:00
parent ef357cce80
commit f4ad6e0858

View 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;
}