summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cd5fc6e)
raw | patch | inline | side by side (parent: cd5fc6e)
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | |
Tue, 3 May 2011 14:27:43 +0000 (15:27 +0100) | ||
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | |
Tue, 3 May 2011 14:27:43 +0000 (15:27 +0100) |
ext/x264/gstx264enc.c | patch | blob | history |
diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c
index 59d1f4e72be003b6963001930099327a4e0c3917..8bf840818bb8b9cfb4773bbba0db073673b55938 100644 (file)
--- a/ext/x264/gstx264enc.c
+++ b/ext/x264/gstx264enc.c
/* If we already have caps return them */
if (GST_PAD_CAPS (pad))
- return gst_caps_copy (GST_PAD_CAPS (pad));
+ return gst_caps_ref (GST_PAD_CAPS (pad));
encoder = GST_X264_ENC (gst_pad_get_parent (pad));
if (!encoder)
caps = gst_caps_intersect (peercaps, templcaps);
gst_caps_unref (peercaps);
} else {
- caps = gst_caps_copy (gst_pad_get_pad_template_caps (pad));
+ caps = gst_caps_ref (gst_pad_get_pad_template_caps (pad));
}
gst_object_unref (encoder);