decoder: refine semantics of gst_vaapi_decoder_put_buffer().
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 9 Oct 2012 12:48:00 +0000 (14:48 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 9 Oct 2012 13:04:36 +0000 (15:04 +0200)
commit86981eea41485361a6c3f68815dc7004910942ec
tree530904dd8f5aa4bafbecc3cfc7a039d8244a5290
parentd7fccc351a5c3055772eac62545e66518a6c95bb
decoder: refine semantics of gst_vaapi_decoder_put_buffer().

Improve the semantics for gst_vaapi_decoder_put_buffer() when an empty
buffer is passed on. An empty buffer is a buffer with a NULL data pointer
or with a size equals to zero. In this case, that buffer is simply
skipped and the function returns TRUE. A NULL buffer argument still
marks the end-of-stream.
gst-libs/gst/vaapi/gstvaapidecoder.c