vaapipostproc: fix reference counting buf for passthrough mode.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 17 Apr 2013 08:53:03 +0000 (10:53 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 17 Apr 2013 08:53:03 +0000 (10:53 +0200)
commit6b259abc02d7243b3c64e1de074af48f92757151
tree6c16c0e17c0b8cda5d15477ff3e720ce1853c076
parent945516c9c7ef5120d643c95fbb1efc1d2f4b2311
vaapipostproc: fix reference counting buf for passthrough mode.

Fix reference counting bug for passthrough mode, whereby the input buffer
was propagated as is downstream through gst_pad_push() without increasing
its reference count before. The was a problem when gst_pad_push() returns
an error and we further decrease the reference count of the input buffer.
gst/vaapi/gstvaapipostproc.c