mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
theoraenc: fix caps leak
https://bugzilla.gnome.org/show_bug.cgi?id=657333
This commit is contained in:
parent
791eeeb1a6
commit
02763b2fa2
1 changed files with 4 additions and 3 deletions
|
@ -627,7 +627,7 @@ theora_enc_sink_getcaps (GstPad * pad)
|
||||||
peer = gst_pad_get_peer (encoder->srcpad);
|
peer = gst_pad_get_peer (encoder->srcpad);
|
||||||
if (peer) {
|
if (peer) {
|
||||||
const GstCaps *templ_caps;
|
const GstCaps *templ_caps;
|
||||||
GstCaps *peer_caps;
|
GstCaps *peer_caps, *tmp_caps;
|
||||||
GstStructure *s;
|
GstStructure *s;
|
||||||
guint i, n;
|
guint i, n;
|
||||||
|
|
||||||
|
@ -645,8 +645,9 @@ theora_enc_sink_getcaps (GstPad * pad)
|
||||||
|
|
||||||
templ_caps = gst_pad_get_pad_template_caps (pad);
|
templ_caps = gst_pad_get_pad_template_caps (pad);
|
||||||
|
|
||||||
caps = gst_caps_intersect (peer_caps, templ_caps);
|
tmp_caps = gst_caps_intersect (peer_caps, templ_caps);
|
||||||
caps = gst_caps_intersect (caps, theora_enc_src_caps);
|
caps = gst_caps_intersect (tmp_caps, theora_enc_src_caps);
|
||||||
|
gst_caps_unref (tmp_caps);
|
||||||
gst_caps_unref (peer_caps);
|
gst_caps_unref (peer_caps);
|
||||||
gst_object_unref (peer);
|
gst_object_unref (peer);
|
||||||
peer = NULL;
|
peer = NULL;
|
||||||
|
|
Loading…
Reference in a new issue