videoencoder: Release the allocator on hard resets

This commit is contained in:
Sebastian Dröge 2013-12-17 17:09:02 +01:00
parent 2e38741b94
commit 3e61449c86

View file

@ -357,6 +357,11 @@ gst_video_encoder_reset (GstVideoEncoder * encoder, gboolean hard)
g_list_free (priv->headers);
priv->headers = NULL;
priv->new_headers = FALSE;
if (priv->allocator) {
gst_object_unref (priv->allocator);
priv->allocator = NULL;
}
}
GST_VIDEO_ENCODER_STREAM_UNLOCK (encoder);