summaryrefslogtreecommitdiffstats
path: root/gst/wavparse
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2004-01-02 07:09:23 +0000
committerDavid Schleef <ds@schleef.org>2004-01-02 07:09:23 +0000
commit6c1b114eed9ec1bf3ffea9a63294e927e29cc2b8 (patch)
tree3c29572d6b4db945275248591c33c116864eeca5 /gst/wavparse
parent39a338d51c31e3e77a4f00cbcf415c5822762ed0 (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/wavparse')
-rw-r--r--gst/wavparse/gstwavparse.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c
index e1b93a1b..406c2145 100644
--- a/gst/wavparse/gstwavparse.c
+++ b/gst/wavparse/gstwavparse.c
@@ -202,6 +202,7 @@ gst_wavparse_init (GstWavParse *wavparse)
gst_pad_set_query_function (wavparse->srcpad, gst_wavparse_pad_query);
gst_pad_set_event_function (wavparse->srcpad, gst_wavparse_srcpad_event);
gst_pad_set_event_mask_function (wavparse->srcpad, gst_wavparse_get_event_masks);
+ gst_pad_use_explicit_caps (wavparse->srcpad);
gst_element_set_loop_function (GST_ELEMENT (wavparse), gst_wavparse_loop);
@@ -656,11 +657,8 @@ gst_wavparse_parse_fmt (GstWavParse *wavparse)
return;
}
- if (gst_pad_try_set_caps (wavparse->srcpad, caps) <= 0) {
- gst_element_error (GST_ELEMENT (wavparse), "Could not set caps");
- return;
- }
-
+ gst_pad_set_explicit_caps (wavparse->srcpad, caps);
+
GST_DEBUG ("frequency %d, channels %d",
wavparse->rate, wavparse->channels);
}