videoencoder: Release the allocator on hard resets
This commit is contained in:
parent
2e38741b94
commit
3e61449c86
@ -357,6 +357,11 @@ gst_video_encoder_reset (GstVideoEncoder * encoder, gboolean hard)
|
|||||||
g_list_free (priv->headers);
|
g_list_free (priv->headers);
|
||||||
priv->headers = NULL;
|
priv->headers = NULL;
|
||||||
priv->new_headers = FALSE;
|
priv->new_headers = FALSE;
|
||||||
|
|
||||||
|
if (priv->allocator) {
|
||||||
|
gst_object_unref (priv->allocator);
|
||||||
|
priv->allocator = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_VIDEO_ENCODER_STREAM_UNLOCK (encoder);
|
GST_VIDEO_ENCODER_STREAM_UNLOCK (encoder);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user