From ab8b69675431e3623eac1ecaee91ad80a0786048 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Fri, 2 Jan 2004 07:09:23 +0000 Subject: 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. --- ext/audiofile/gstafparse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/audiofile/gstafparse.c') diff --git a/ext/audiofile/gstafparse.c b/ext/audiofile/gstafparse.c index f61d64f4..179dd849 100644 --- a/ext/audiofile/gstafparse.c +++ b/ext/audiofile/gstafparse.c @@ -150,6 +150,7 @@ gst_afparse_init (GstAFParse *afparse) { afparse->srcpad = gst_pad_new_from_template ( gst_element_get_pad_template (GST_ELEMENT (afparse), "src"), "src"); + gst_pad_use_explicit_caps (afparse->srcpad); gst_element_add_pad (GST_ELEMENT (afparse), afparse->srcpad); afparse->sinkpad = gst_pad_new_from_template ( @@ -381,7 +382,7 @@ gst_afparse_open_file (GstAFParse *afparse) /* set caps on src */ /*FIXME: add all the possible formats, especially float ! */ - gst_pad_try_set_caps (afparse->srcpad, + gst_pad_set_explicit_caps (afparse->srcpad, gst_caps_new_simple ( "audio/x-raw-int", "endianness", G_TYPE_INT, G_BYTE_ORDER, -- cgit v1.2.1