summaryrefslogtreecommitdiffstats
path: root/ext/divx/gstdivxenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/divx/gstdivxenc.c')
-rw-r--r--ext/divx/gstdivxenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/divx/gstdivxenc.c b/ext/divx/gstdivxenc.c
index ea9c56f4..b7ac747d 100644
--- a/ext/divx/gstdivxenc.c
+++ b/ext/divx/gstdivxenc.c
@@ -232,6 +232,7 @@ gst_divxenc_init (GstDivxEnc *divxenc)
divxenc->srcpad = gst_pad_new_from_template(
gst_static_pad_template_get (&src_template),
"src");
+ gst_pad_use_explicit_caps (divxenc->srcpad);
gst_element_add_pad(GST_ELEMENT(divxenc), divxenc->srcpad);
/* bitrate, etc. */
@@ -456,7 +457,7 @@ gst_divxenc_connect (GstPad *pad,
"framerate", G_TYPE_DOUBLE, fps,
NULL);
- ret = gst_pad_try_set_caps(divxenc->srcpad, new_caps);
+ ret = gst_pad_set_explicit_caps (divxenc->srcpad, new_caps);
if (ret <= 0) {
gst_divxenc_unset(divxenc);
}