decoder: output decoded frames only once.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 30 Jun 2014 16:34:45 +0000 (18:34 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 30 Jun 2014 17:13:25 +0000 (19:13 +0200)
commitf040f4f8b4d3ecdc995f1401fe13cd222def95e9
treede949ecdcb15b39b6df5272f0468ffb4acdf51ed
parent8bdef56cd42d920bcfd81ebe3273d15e02d15c13
decoder: output decoded frames only once.

Make sure to output the decoded picture, and push the associated
GstVideoCodecFrame, only once. The frame fully represents what needs
to be output, included for interlaced streams. Otherwise, the base
GstVideoDecoder class would release the frame twice.

Anyway, the general process is to output decoded frames only when
they are complete. By complete, we mean a full frame was decoded or
both fields of a frame were decoded.
gst-libs/gst/vaapi/gstvaapidecoder_objects.c