videoencoder: Keep sticky events around when doing a soft reset
authorSong Bing <b06498@freescale.com>
Fri, 27 Mar 2015 05:39:43 +0000 (13:39 +0800)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 27 Mar 2015 08:46:28 +0000 (09:46 +0100)
commit992101f82a3ad3c29c5a18a535ff7656c8017d98
tree319377df877fe9f3f495beba3df7ddd4f5de12be
parent8b0329c45d7c2d90b7077d701a507f777d31e2cb
videoencoder: Keep sticky events around when doing a soft reset

The current code will first discard all frames, and then tries to copy
all sticky events from the (now discarded) frames. Let's change the order.

https://bugzilla.gnome.org/show_bug.cgi?id=746865
gst-libs/gst/video/gstvideoencoder.c