mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
videoencoder: plug some leaks
This commit is contained in:
parent
c9d3f32cc9
commit
20806e4c16
1 changed files with 2 additions and 0 deletions
|
@ -1011,6 +1011,7 @@ gst_video_encoder_sink_event_default (GstVideoEncoder * encoder,
|
|||
gst_tag_list_remove_tag (tags, GST_TAG_ENCODER_VERSION);
|
||||
|
||||
gst_video_encoder_merge_tags (encoder, tags, GST_TAG_MERGE_REPLACE);
|
||||
gst_tag_list_unref (tags);
|
||||
gst_event_unref (event);
|
||||
event = NULL;
|
||||
ret = TRUE;
|
||||
|
@ -1250,6 +1251,7 @@ gst_video_encoder_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
|
|||
gst_caps_unref (caps);
|
||||
goto not_negotiated;
|
||||
}
|
||||
gst_caps_unref (caps);
|
||||
encoder->priv->do_caps = FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue