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 | ab8b69675431e3623eac1ecaee91ad80a0786048 (patch) | |
tree | e02bdfe53325126a1f8dfe3e8eecea00e64b2111 /gst/mpegaudioparse | |
parent | 9e9bd20111b288df5012b8965ab392a550ccde08 (diff) | |
download | gst-plugins-bad-ab8b69675431e3623eac1ecaee91ad80a0786048.tar.gz gst-plugins-bad-ab8b69675431e3623eac1ecaee91ad80a0786048.tar.bz2 gst-plugins-bad-ab8b69675431e3623eac1ecaee91ad80a0786048.zip |
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/mpegaudioparse')
-rw-r--r-- | gst/mpegaudioparse/gstmpegaudioparse.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gst/mpegaudioparse/gstmpegaudioparse.c b/gst/mpegaudioparse/gstmpegaudioparse.c index 9b13019d..9363dfe6 100644 --- a/gst/mpegaudioparse/gstmpegaudioparse.c +++ b/gst/mpegaudioparse/gstmpegaudioparse.c @@ -290,6 +290,7 @@ gst_mp3parse_init (GstMPEGAudioParse *mp3parse) mp3parse->srcpad = gst_pad_new_from_template( gst_static_pad_template_get (&mp3_src_template), "src"); gst_element_add_pad(GST_ELEMENT(mp3parse),mp3parse->srcpad); + gst_pad_use_explicit_caps (mp3parse->srcpad); /*gst_pad_set_type_id(mp3parse->srcpad, mp3frametype); */ mp3parse->partialbuf = NULL; @@ -465,10 +466,7 @@ bpf_from_header (GstMPEGAudioParse *parse, unsigned long header) bitrate != parse->bit_rate) { GstCaps *caps = mp3_caps_create (layer, channels, bitrate, rate); - if (gst_pad_try_set_caps(parse->srcpad, caps) <= 0) { - gst_element_error (GST_ELEMENT (parse), - "mp3parse: failed to negotiate format with next element"); - } + gst_pad_set_explicit_caps(parse->srcpad, caps); parse->channels = channels; parse->layer = layer; |