mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:06:17 +00:00
videoencoder: Release the allocator on hard resets
This commit is contained in:
parent
2e38741b94
commit
3e61449c86
1 changed files with 5 additions and 0 deletions
|
@ -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…
Reference in a new issue