video{en,de}coder: Reset the codec after calling the stop() vfunc
authorSebastian Dröge <sebastian@centricular.com>
Mon, 22 Dec 2014 10:33:14 +0000 (11:33 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 22 Dec 2014 10:33:14 +0000 (11:33 +0100)
commit098b42f36b9ab0a41be5d35f076dd2a335a3b2c1
treeba64c7dd81431d41e1a53ac15181494d56f28e47
parentceb9de6e55f8c34a9f955d980ef43b7d36226d3d
video{en,de}coder: Reset the codec after calling the stop() vfunc

The stop() vfunc might mess with some of our fields we have just
reset, which could cause memory leaks or invalid state taken over
to later.

Also the stop() vfunc, or anything called until it from another thread,
might want to be able to use the fields that were just resetted and
become confused because of that.

In the decoder we already had a workaround for things like this happening,
this workaround is not needed anymore.
gst-libs/gst/video/gstvideodecoder.c
gst-libs/gst/video/gstvideoencoder.c