videodecoder: Ensure buffers don't disappear early
authorEdward Hervey <edward.hervey@collabora.co.uk>
Thu, 26 Apr 2012 16:43:16 +0000 (18:43 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 19 Jun 2012 08:33:03 +0000 (09:33 +0100)
commit4b946e8cee1f9ca4570d657f4813d04fb4545b48
tree73c88560da688ab996da32c0eb7e67972942a156
parent4119246081efdfe0ebe244711e24af58ca2418d5
videodecoder: Ensure buffers don't disappear early

The frames are the owners of the buffers. In cases where a decoder
would keep around reference frames, we need to ensure they don't
disappear early.
To handle this, we pass downstream a complete sub-buffer of the output
buffer, ensuring that the buffer will only be released when downstream
is done with it *AND* the frame is no longer used.

Conflicts:

gst-libs/gst/video/gstvideodecoder.c
gst-libs/gst/video/gstvideodecoder.c