projects
/
platform
/
upstream
/
gst-plugins-ugly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd5fc6e
)
x264enc: No need to copy, reffing is enough
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
59d1f4e
..
8bf8408
100644
(file)
--- a/
ext/x264/gstx264enc.c
+++ b/
ext/x264/gstx264enc.c
@@
-1466,7
+1466,7
@@
gst_x264_enc_sink_get_caps (GstPad * pad)
/* 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)
@@
-1496,7
+1496,7
@@
gst_x264_enc_sink_get_caps (GstPad * pad)
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);