projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
001b4a0
)
encodebin: Avoid unnecessary read only caps copy
author
Robert Swain
<robert.swain@collabora.co.uk>
Fri, 23 Sep 2011 15:50:31 +0000
(17:50 +0200)
committer
Robert Swain
<robert.swain@collabora.co.uk>
Fri, 23 Sep 2011 15:50:31 +0000
(17:50 +0200)
gst/encoding/gstencodebin.c
patch
|
blob
|
history
diff --git
a/gst/encoding/gstencodebin.c
b/gst/encoding/gstencodebin.c
index
062bae7
..
740c9c9
100644
(file)
--- a/
gst/encoding/gstencodebin.c
+++ b/
gst/encoding/gstencodebin.c
@@
-1202,7
+1202,7
@@
_create_stream_group (GstEncodeBin * ebin, GstEncodingProfile * sprof,
/* Check if stream format is compatible */
srcpad = gst_element_get_static_pad (sgroup->smartencoder, "src");
- tmpcaps = gst_pad_get_caps (srcpad);
+ tmpcaps = gst_pad_get_caps
_reffed
(srcpad);
if (!gst_caps_can_intersect (tmpcaps, format)) {
GST_DEBUG ("We don't have a smart encoder for the stream format");
gst_object_unref (sgroup->smartencoder);