projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4fd433
)
schroenc: When the source pad isn't linked, use the pad template
author
Jan Schmidt
<thaytan@noraisin.net>
Mon, 5 Oct 2009 18:49:06 +0000
(19:49 +0100)
committer
Jan Schmidt
<thaytan@noraisin.net>
Mon, 5 Oct 2009 20:13:40 +0000
(21:13 +0100)
For negotiation, use the source pad pad template when it doesn't
have a peer.
ext/schroedinger/gstschroenc.c
patch
|
blob
|
history
diff --git
a/ext/schroedinger/gstschroenc.c
b/ext/schroedinger/gstschroenc.c
index 70312eedc44f131e2f38cd75816840eb7bb78417..e69ac6229256699c9b7c6de58a49da578ea12cf6 100644
(file)
--- a/
ext/schroedinger/gstschroenc.c
+++ b/
ext/schroedinger/gstschroenc.c
@@
-263,6
+263,11
@@
gst_schro_enc_set_format (GstBaseVideoEncoder * base_video_encoder,
caps =
gst_pad_get_allowed_caps (GST_BASE_VIDEO_CODEC_SRC_PAD
(base_video_encoder));
+ if (caps == NULL) {
+ caps =
+ gst_caps_copy (gst_pad_get_pad_template_caps
+ (GST_BASE_VIDEO_CODEC_SRC_PAD (base_video_encoder)));
+ }
if (gst_caps_is_empty (caps)) {
gst_caps_unref (caps);