1 typedef gpointer GstCapsFactoryEntry;
2 typedef GstCapsFactoryEntry GstCapsFactory[];
3 typedef GstCapsFactory *GstCapsListFactory[];
5 typedef gpointer GstPadFactoryEntry;
6 typedef GstPadFactoryEntry GstPadFactory[];
7 typedef GstPadFactory *GstPadListFactory[];
9 #define GST_PADFACTORY_SRC GINT_TO_POINTER (GST_PAD_SRC)
10 #define GST_PADFACTORY_ALWAYS GINT_TO_POINTER (GST_PAD_ALWAYS)
12 typedef struct GstPadTemplate {
19 GstPadFactory mpg123_src_padfactory = {
22 GST_PADFACTORY_ALWAYS,
25 "samplerate", GST_PROPS_INT (44100),
30 static GstPadTemplate *srcpadtemplate;
32 mpg123_new(GstMpg123 *mpg123) {
33 mpg123->srcpad = gst_pad_new_template("src", srcpadtemplate);
38 GstElementFactory *factory;
40 factory = gst_elementfactory_new("mpg123",. . .);
41 srcpadtemplate = gst_padfactory_new(mpg123_src_padfactory);
42 get_elementfactory_add_padtemplate (srcpadtemplate);