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/gstafsrc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/audiofile/gstafsrc.c') diff --git a/ext/audiofile/gstafsrc.c b/ext/audiofile/gstafsrc.c index 0520463d..7d477ab2 100644 --- a/ext/audiofile/gstafsrc.c +++ b/ext/audiofile/gstafsrc.c @@ -179,6 +179,7 @@ gst_afsrc_init (GstAFSrc *afsrc) afsrc->srcpad = gst_pad_new_from_template ( gst_element_get_pad_template (GST_ELEMENT (afsrc), "src"), "src"); gst_element_add_pad (GST_ELEMENT (afsrc), afsrc->srcpad); + gst_pad_use_explicit_caps (afsrc->srcpad); gst_pad_set_get_function (afsrc->srcpad, gst_afsrc_get); afsrc->bytes_per_read = 4096; @@ -339,8 +340,7 @@ gst_afsrc_open_file (GstAFSrc *src) } /* set caps on src */ - /*FIXME: add all the possible formats, especially float ! */ - gst_pad_try_set_caps (src->srcpad, + gst_pad_set_explicit_caps (src->srcpad, gst_caps_new_simple ("audio/x-raw-int", "endianness", G_TYPE_INT, G_BYTE_ORDER, "signed", G_TYPE_BOOLEAN, src->is_signed, -- cgit v1.2.1