summaryrefslogtreecommitdiff
path: root/sys/applemedia
diff options
context:
space:
mode:
authorHeinrich Fink <hfink@toolsonair.com>2015-11-11 11:40:52 +0100
committerSebastian Dröge <sebastian@centricular.com>2015-11-16 09:17:16 +0200
commit63f500dfff9d7b97ca6e6f645510d58b4eb374d0 (patch)
treed69505f0a05c6a333a794671bc452b45de224880 /sys/applemedia
parentae89eab816f2974f1ba9b5bb474a085640ffa4fe (diff)
downloadgstreamer-plugins-bad-63f500dfff9d7b97ca6e6f645510d58b4eb374d0.tar.gz
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
Diffstat (limited to 'sys/applemedia')
-rw-r--r--sys/applemedia/vtenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/applemedia/vtenc.c b/sys/applemedia/vtenc.c
index b6880042d..f0af751ba 100644
--- a/sys/applemedia/vtenc.c
+++ b/sys/applemedia/vtenc.c
@@ -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);