mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +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);
|
||||
priv->headers = NULL;
|
||||
priv->new_headers = FALSE;
|
||||
|
||||
if (priv->allocator) {
|
||||
gst_object_unref (priv->allocator);
|
||||
priv->allocator = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
GST_VIDEO_ENCODER_STREAM_UNLOCK (encoder);
|
||||
|
|
Loading…
Reference in a new issue