vtenc: Set profile_level to NULL after release

Otherwise, gst_vtenc_negotiate_profile_and_level will double-release as
it checks for profile_level != NULL. This caused crashes when the
vtenc instance is stopped and then restarted.

https://bugzilla.gnome.org/show_bug.cgi?id=757935
This commit is contained in:
Heinrich Fink 2015-11-11 11:40:52 +01:00 committed by Sebastian Dröge
parent aada44cc09
commit 788ff2f98e

View file

@ -505,6 +505,7 @@ gst_vtenc_stop (GstVideoEncoder * enc)
if (self->profile_level)
CFRelease (self->profile_level);
self->profile_level = NULL;
if (self->input_state)
gst_video_codec_state_unref (self->input_state);