vaapidecode: Fix ref handling
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Wed, 7 Nov 2012 09:51:38 +0000 (11:51 +0200)
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>
Wed, 7 Nov 2012 09:51:38 +0000 (11:51 +0200)
commitc2e7ddc2ed28c535c8d5230d8a2a1f70dc329678
treec8d3e21a0ea5f65df5e869eaf9cdc53a99e2ff15
parent6583fe7ccce3e8111d0007ba691b95bb48ca1d6c
vaapidecode: Fix ref handling

-- keep a ref to surface_buffer before calling finish_frame:
   unreffing of VideoCodecFrame  should not release the surface_buffer to pool

-- unref the VideoCodecFrame in case of error_commit_buffer since the
   gst_video_decoder_get_frame() caused an extra ref.
gst/vaapi/gstvaapidecode.c