GNOME Bugzilla – Bug 745189
vaapidecode: Crash if buffers outlive the decoder
Last modified: 2015-03-06 16:06:52 UTC
Created attachment 297936 [details] [review] vaapidecode: Don't crash if a buffer outlives the decoder Sometimes, for example, when switching video streams but keeping the same sink, the surface will be released after the decoder is stopped and replaced. This caused a crash because the release callback was called on an invalid pointer. I'm attaching a patch that holds a reference to the decoder object in the buffer.
Review of attachment 297936 [details] [review]: LGTM
Rebased, and pushed..Thanks for the patch. commit 8f56b758b6a3d6e742a97e8551c16605eb57e5aa Author: Olivier Crete <olivier.crete@collabora.com> Date: Fri Mar 6 15:20:01 2015 +0200 vaapidecode: Don't crash if a buffer outlives the decoder Sometimes, for example, when switching video streams but keeping the same sink, the surface will be released after the decoder is stopped and replaced. This caused a crash because the release callback was called on an invalid pointer. The patch adding an additional reference to the decoder object in the buffer. https://bugzilla.gnome.org/show_bug.cgi?id=745189 Signed-off-by: Olivier Crete <olivier.crete@collabora.com> Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com>