Commit 20806e4c authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

videoencoder: plug some leaks

parent c9d3f32c
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment