diff options
author | David Schleef <ds@schleef.org> | 2004-01-02 07:09:23 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2004-01-02 07:09:23 +0000 |
commit | 6c1b114eed9ec1bf3ffea9a63294e927e29cc2b8 (patch) | |
tree | 3c29572d6b4db945275248591c33c116864eeca5 /gst/auparse | |
parent | 39a338d51c31e3e77a4f00cbcf415c5822762ed0 (diff) |
Convert elements to use gst_pad_use_explicit_caps() where appropriate.
Original commit message from CVS:
Convert elements to use gst_pad_use_explicit_caps() where appropriate.
Diffstat (limited to 'gst/auparse')
-rw-r--r-- | gst/auparse/gstauparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/auparse/gstauparse.c b/gst/auparse/gstauparse.c index d4f50644..570a2b6b 100644 --- a/gst/auparse/gstauparse.c +++ b/gst/auparse/gstauparse.c @@ -135,6 +135,7 @@ gst_auparse_init (GstAuParse *auparse) auparse->srcpad = gst_pad_new_from_template ( gst_static_pad_template_get (&gst_auparse_src_template), "src"); gst_element_add_pad (GST_ELEMENT (auparse), auparse->srcpad); + gst_pad_use_explicit_caps (auparse->srcpad); auparse->offset = 0; auparse->size = 0; @@ -251,9 +252,8 @@ gst_auparse_chain (GstPad *pad, GstData *_data) "signed", G_TYPE_BOOLEAN, sign, NULL); } - if (gst_pad_try_set_caps (auparse->srcpad, tempcaps) <= 0) { + if (!gst_pad_set_explicit_caps (auparse->srcpad, tempcaps)) { gst_buffer_unref (buf); - gst_element_error (GST_ELEMENT (auparse), "could not set audio caps"); return; } |