"AlsaMidi Source",
"Source",
"Push ALSA MIDI sequencer events around", "Antonio Ospite <ao2@ao2.it>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&srctemplate));
+ gst_element_class_add_static_pad_template (gstelement_class, &srctemplate);
gstbase_src_class->start = GST_DEBUG_FUNCPTR (gst_alsa_midi_src_start);
gstbase_src_class->stop = GST_DEBUG_FUNCPTR (gst_alsa_midi_src_stop);
"Audio sink (ALSA)", "Sink/Audio",
"Output to a sound card via ALSA", "Wim Taymans <wim@fluendo.com>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&alsasink_sink_factory));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &alsasink_sink_factory);
gstbasesink_class->get_caps = GST_DEBUG_FUNCPTR (gst_alsasink_getcaps);
gstbasesink_class->query = GST_DEBUG_FUNCPTR (gst_alsasink_query);
"Audio source (ALSA)", "Source/Audio",
"Read from a sound card via ALSA", "Wim Taymans <wim@fluendo.com>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&alsasrc_src_factory));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &alsasrc_src_factory);
gstbasesrc_class->get_caps = GST_DEBUG_FUNCPTR (gst_alsasrc_getcaps);
klass->plugin->info->name, klass->plugin->info->version);
/* FIXME: improve to only register what plugin supports? */
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&src_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_template));
+ gst_element_class_add_static_pad_template (element_class, &src_template);
+ gst_element_class_add_static_pad_template (element_class, &sink_template);
gst_element_class_set_static_metadata (element_class,
longname, "Visualization",
"parse an ogg avi stream into pages (info about ogg: http://xiph.org)",
"Wim Taymans <wim@fluendo.com>");
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&ogg_avi_parse_sink_template_factory));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&ogg_avi_parse_src_template_factory));
+ gst_element_class_add_static_pad_template (element_class,
+ &ogg_avi_parse_sink_template_factory);
+ gst_element_class_add_static_pad_template (element_class,
+ &ogg_avi_parse_src_template_factory);
}
static void
"demux ogg streams (info about ogg: http://xiph.org)",
"Wim Taymans <wim@fluendo.com>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&ogg_demux_sink_template_factory));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&ogg_demux_src_template_factory));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &ogg_demux_sink_template_factory);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &ogg_demux_src_template_factory);
gstelement_class->change_state = gst_ogg_demux_change_state;
gstelement_class->send_event = gst_ogg_demux_receive_event;
gobject_class->get_property = gst_ogg_mux_get_property;
gobject_class->set_property = gst_ogg_mux_set_property;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&src_factory));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&video_sink_factory));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&audio_sink_factory));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&subtitle_sink_factory));
+ gst_element_class_add_static_pad_template (gstelement_class, &src_factory);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &video_sink_factory);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &audio_sink_factory);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &subtitle_sink_factory);
gst_element_class_set_static_metadata (gstelement_class,
"Ogg muxer", "Codec/Muxer",
"parse ogg streams into pages (info about ogg: http://xiph.org)",
"Michael Smith <msmith@fluendo.com>");
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&ogg_parse_sink_template_factory));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&ogg_parse_src_template_factory));
+ gst_element_class_add_static_pad_template (element_class,
+ &ogg_parse_sink_template_factory);
+ gst_element_class_add_static_pad_template (element_class,
+ &ogg_parse_src_template_factory);
}
static void
"parse an OGM audio header and stream",
"GStreamer maintainers <gstreamer-devel@lists.freedesktop.org>");
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_factory_audio));
- audio_src_templ = gst_pad_template_new ("src",
- GST_PAD_SRC, GST_PAD_SOMETIMES, caps);
+ gst_element_class_add_static_pad_template (element_class,
+ &sink_factory_audio);
+ audio_src_templ =
+ gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_SOMETIMES, caps);
gst_element_class_add_pad_template (element_class, audio_src_templ);
gst_caps_unref (caps);
}
"parse an OGM video header and stream",
"GStreamer maintainers <gstreamer-devel@lists.freedesktop.org>");
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_factory_video));
- video_src_templ = gst_pad_template_new ("src",
- GST_PAD_SRC, GST_PAD_SOMETIMES, caps);
+ gst_element_class_add_static_pad_template (element_class,
+ &sink_factory_video);
+ video_src_templ =
+ gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_SOMETIMES, caps);
gst_element_class_add_pad_template (element_class, video_src_templ);
gst_caps_unref (caps);
}
"parse an OGM text header and stream",
"GStreamer maintainers <gstreamer-devel@lists.freedesktop.org>");
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_factory_text));
+ gst_element_class_add_static_pad_template (element_class, &sink_factory_text);
text_src_templ = gst_pad_template_new ("src",
GST_PAD_SRC, GST_PAD_SOMETIMES, caps);
gst_element_class_add_pad_template (element_class, text_src_templ);
adclass->set_format = GST_DEBUG_FUNCPTR (gst_opus_dec_set_format);
adclass->getcaps = GST_DEBUG_FUNCPTR (gst_opus_dec_getcaps);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&opus_dec_src_factory));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&opus_dec_sink_factory));
+ gst_element_class_add_static_pad_template (element_class,
+ &opus_dec_src_factory);
+ gst_element_class_add_static_pad_template (element_class,
+ &opus_dec_sink_factory);
gst_element_class_set_static_metadata (element_class, "Opus audio decoder",
- "Codec/Decoder/Audio",
- "decode opus streams to audio",
+ "Codec/Decoder/Audio", "decode opus streams to audio",
"Vincent Penquerc'h <vincent.penquerch@collabora.co.uk>");
g_object_class_install_property (gobject_class, PROP_USE_INBAND_FEC,
g_param_spec_boolean ("use-inband-fec", "Use in-band FEC",
gobject_class->set_property = gst_opus_enc_set_property;
gobject_class->get_property = gst_opus_enc_get_property;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&src_factory));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&sink_factory));
+ gst_element_class_add_static_pad_template (gstelement_class, &src_factory);
+ gst_element_class_add_static_pad_template (gstelement_class, &sink_factory);
gst_element_class_set_static_metadata (gstelement_class, "Opus audio encoder",
"Codec/Encoder/Audio",
"Encodes audio in Opus format",
gobject_class->set_property = gst_base_text_overlay_set_property;
gobject_class->get_property = gst_base_text_overlay_get_property;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&src_template_factory));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&video_sink_template_factory));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &src_template_factory);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &video_sink_template_factory);
gstelement_class->change_state =
GST_DEBUG_FUNCPTR (gst_base_text_overlay_change_state);
{
GstElementClass *element_class = (GstElementClass *) klass;
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&text_sink_template_factory));
+ gst_element_class_add_static_pad_template (element_class,
+ &text_sink_template_factory);
gst_element_class_set_static_metadata (element_class, "Text overlay",
"Filter/Editor/Video",
gobject_class->set_property = gst_text_render_set_property;
gobject_class->get_property = gst_text_render_get_property;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&src_template_factory));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&sink_template_factory));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &src_template_factory);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &sink_template_factory);
gst_element_class_set_static_metadata (gstelement_class, "Text renderer",
"Filter/Editor/Video",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
}
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&theora_dec_src_factory));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&theora_dec_sink_factory));
- gst_element_class_set_static_metadata (element_class,
- "Theora video decoder", "Codec/Decoder/Video",
- "decode raw theora streams to raw YUV video",
+ gst_element_class_add_static_pad_template (element_class,
+ &theora_dec_src_factory);
+ gst_element_class_add_static_pad_template (element_class,
+ &theora_dec_sink_factory);
+ gst_element_class_set_static_metadata (element_class, "Theora video decoder",
+ "Codec/Decoder/Video", "decode raw theora streams to raw YUV video",
"Benjamin Otte <otte@gnome.org>, Wim Taymans <wim@fluendo.com>");
video_decoder_class->start = GST_DEBUG_FUNCPTR (theora_dec_start);
gobject_class->get_property = theora_enc_get_property;
gobject_class->finalize = theora_enc_finalize;
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&theora_enc_src_factory));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&theora_enc_sink_factory));
- gst_element_class_set_static_metadata (element_class,
- "Theora video encoder", "Codec/Encoder/Video",
- "encode raw YUV video to a theora stream",
+ gst_element_class_add_static_pad_template (element_class,
+ &theora_enc_src_factory);
+ gst_element_class_add_static_pad_template (element_class,
+ &theora_enc_sink_factory);
+ gst_element_class_set_static_metadata (element_class, "Theora video encoder",
+ "Codec/Encoder/Video", "encode raw YUV video to a theora stream",
"Wim Taymans <wim@fluendo.com>");
gstvideo_encoder_class->start = GST_DEBUG_FUNCPTR (theora_enc_start);
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
#endif
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&theora_parse_src_factory));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&theora_parse_sink_factory));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &theora_parse_src_factory);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &theora_parse_sink_factory);
gst_element_class_set_static_metadata (gstelement_class,
- "Theora video parser", "Codec/Parser/Video",
- "parse raw theora streams", "Andy Wingo <wingo@pobox.com>");
+ "Theora video parser", "Codec/Parser/Video", "parse raw theora streams",
+ "Andy Wingo <wingo@pobox.com>");
gstelement_class->change_state = theora_parse_change_state;
static void
gst_vorbis_dec_class_init (GstVorbisDecClass * klass)
{
- GstPadTemplate *src_template, *sink_template;
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
GstAudioDecoderClass *base_class = GST_AUDIO_DECODER_CLASS (klass);
gobject_class->finalize = vorbis_dec_finalize;
- src_template = gst_static_pad_template_get (&vorbis_dec_src_factory);
- gst_element_class_add_pad_template (element_class, src_template);
-
- sink_template = gst_static_pad_template_get (&vorbis_dec_sink_factory);
- gst_element_class_add_pad_template (element_class, sink_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &vorbis_dec_src_factory);
+ gst_element_class_add_static_pad_template (element_class,
+ &vorbis_dec_sink_factory);
gst_element_class_set_static_metadata (element_class,
"Vorbis audio decoder", "Codec/Decoder/Audio",
gst_element_class_add_pad_template (gstelement_class, sink_templ);
gst_caps_unref (sink_caps);
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&vorbis_enc_src_factory));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &vorbis_enc_src_factory);
gst_element_class_set_static_metadata (gstelement_class,
"Vorbis audio encoder", "Codec/Encoder/Audio",
gstelement_class->change_state = vorbis_parse_change_state;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&vorbis_parse_src_factory));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&vorbis_parse_sink_factory));
- gst_element_class_set_static_metadata (gstelement_class,
- "VorbisParse", "Codec/Parser/Audio",
- "parse raw vorbis streams",
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &vorbis_parse_src_factory);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &vorbis_parse_sink_factory);
+ gst_element_class_set_static_metadata (gstelement_class, "VorbisParse",
+ "Codec/Parser/Audio", "parse raw vorbis streams",
"Thomas Vander Stichele <thomas at apestaart dot org>");
klass->parse_packet = GST_DEBUG_FUNCPTR (vorbis_parse_parse_packet);
"Generic/Sink", "Allow the application to get access to raw buffer",
"David Schleef <ds@schleef.org>, Wim Taymans <wim.taymans@gmail.com>");
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_app_sink_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_app_sink_template);
basesink_class->unlock = gst_app_sink_unlock_start;
basesink_class->unlock_stop = gst_app_sink_unlock_stop;
"Generic/Source", "Allow the application to feed buffers to a pipeline",
"David Schleef <ds@schleef.org>, Wim Taymans <wim.taymans@gmail.com>");
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_app_src_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_app_src_template);
element_class->send_event = gst_app_src_send_event;
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
#endif
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_audio_cd_src_src_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_audio_cd_src_src_template);
#if 0
element_class->set_index = GST_DEBUG_FUNCPTR (gst_audio_cd_src_set_index);
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&src_factory));
+ gst_element_class_add_static_pad_template (element_class, &src_factory);
GST_DEBUG_CATEGORY_INIT (tagdemux_debug, "tagdemux", 0,
"tag demux base class");
"object.", GST_TYPE_CAPS,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_adder_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_adder_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_adder_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_adder_sink_template);
gst_element_class_set_static_metadata (gstelement_class, "Adder",
- "Generic/Audio",
- "Add N audio channels together",
+ "Generic/Audio", "Add N audio channels together",
"Thomas Vander Stichele <thomas at apestaart dot org>");
gstelement_class->request_new_pad =
GST_TYPE_AUDIO_NOISE_SHAPING_METHOD, GST_AUDIO_NOISE_SHAPING_NONE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_audio_convert_src_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_audio_convert_sink_template));
- gst_element_class_set_static_metadata (element_class,
- "Audio converter", "Filter/Converter/Audio",
- "Convert audio to different formats", "Benjamin Otte <otte@gnome.org>");
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_audio_convert_src_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_audio_convert_sink_template);
+ gst_element_class_set_static_metadata (element_class, "Audio converter",
+ "Filter/Converter/Audio", "Convert audio to different formats",
+ "Benjamin Otte <otte@gnome.org>");
basetransform_class->get_unit_size =
GST_DEBUG_FUNCPTR (gst_audio_convert_get_unit_size);
"Drops/duplicates/adjusts timestamps on audio samples to make a perfect stream",
"Wim Taymans <wim@fluendo.com>");
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_audio_rate_sink_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_audio_rate_src_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_audio_rate_sink_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_audio_rate_src_template);
element_class->change_state = gst_audio_rate_change_state;
}
0, G_MAXUINT, SPEEX_RESAMPLER_SINC_FILTER_AUTO_THRESHOLD_DEFAULT,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_audio_resample_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_audio_resample_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_audio_resample_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_audio_resample_sink_template);
gst_element_class_set_static_metadata (gstelement_class, "Audio resampler",
"Filter/Converter/Audio", "Resamples audio",
"Can activate in pull mode", DEFAULT_CAN_ACTIVATE_PULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_audio_test_src_src_template));
- gst_element_class_set_static_metadata (gstelement_class,
- "Audio test source", "Source/Audio",
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_audio_test_src_src_template);
+ gst_element_class_set_static_metadata (gstelement_class, "Audio test source",
+ "Source/Audio",
"Creates audio test signals of given frequency and volume",
"Stefan Kost <ensonic@users.sf.net>");
klass->request_pad = gst_encode_bin_request_pad_signal;
klass->request_profile_pad = gst_encode_bin_request_profile_pad_signal;
- gst_element_class_add_pad_template (gstelement_klass,
- gst_static_pad_template_get (&muxer_src_template));
- gst_element_class_add_pad_template (gstelement_klass,
- gst_static_pad_template_get (&video_sink_template));
- gst_element_class_add_pad_template (gstelement_klass,
- gst_static_pad_template_get (&audio_sink_template));
- /* gst_element_class_add_pad_template (gstelement_klass, */
- /* gst_static_pad_template_get (&text_sink_template)); */
- gst_element_class_add_pad_template (gstelement_klass,
- gst_static_pad_template_get (&private_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_klass,
+ &muxer_src_template);
+ gst_element_class_add_static_pad_template (gstelement_klass,
+ &video_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_klass,
+ &audio_sink_template);
+ /* gst_element_class_add_static_pad_template (gstelement_klass, &text_sink_template); */
+ gst_element_class_add_static_pad_template (gstelement_klass,
+ &private_sink_template);
gstelement_klass->change_state =
GST_DEBUG_FUNCPTR (gst_encode_bin_change_state);
gst_smart_encoder_parent_class = g_type_class_peek_parent (klass);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&src_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_template));
+ gst_element_class_add_static_pad_template (element_class, &src_template);
+ gst_element_class_add_static_pad_template (element_class, &sink_template);
gst_element_class_set_static_metadata (element_class, "Smart Video Encoder",
"Codec/Recoder/Video",
GST_DEBUG_CATEGORY_INIT (gst_stream_combiner_debug, "streamcombiner", 0,
"Stream Combiner");
- gst_element_class_add_pad_template (gstelement_klass,
- gst_static_pad_template_get (&src_template));
- gst_element_class_add_pad_template (gstelement_klass,
- gst_static_pad_template_get (&sink_template));
+ gst_element_class_add_static_pad_template (gstelement_klass, &src_template);
+ gst_element_class_add_static_pad_template (gstelement_klass, &sink_template);
gstelement_klass->request_new_pad =
GST_DEBUG_FUNCPTR (gst_stream_combiner_request_new_pad);
GST_DEBUG_CATEGORY_INIT (gst_stream_splitter_debug, "streamsplitter", 0,
"Stream Splitter");
- gst_element_class_add_pad_template (gstelement_klass,
- gst_static_pad_template_get (&src_template));
- gst_element_class_add_pad_template (gstelement_klass,
- gst_static_pad_template_get (&sink_template));
+ gst_element_class_add_static_pad_template (gstelement_klass, &src_template);
+ gst_element_class_add_static_pad_template (gstelement_klass, &sink_template);
gstelement_klass->request_new_pad =
GST_DEBUG_FUNCPTR (gst_stream_splitter_request_new_pad);
for (tmp = events; tmp; tmp = tmp->next) {
if (GST_EVENT_TYPE (tmp->data) != GST_EVENT_EOS &&
GST_EVENT_TYPE (tmp->data) != GST_EVENT_SEGMENT &&
- GST_EVENT_IS_STICKY (tmp->data) &&
- pad != NULL) {
+ GST_EVENT_IS_STICKY (tmp->data) && pad != NULL) {
gst_pad_store_sticky_event (pad, GST_EVENT_CAST (tmp->data));
}
gst_event_unref (tmp->data);
gobject_class->finalize = gst_gio_base_sink_finalize;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&sink_factory));
+ gst_element_class_add_static_pad_template (gstelement_class, &sink_factory);
gstbasesink_class->start = GST_DEBUG_FUNCPTR (gst_gio_base_sink_start);
gstbasesink_class->stop = GST_DEBUG_FUNCPTR (gst_gio_base_sink_stop);
gobject_class->finalize = gst_gio_base_src_finalize;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&src_factory));
+ gst_element_class_add_static_pad_template (gstelement_class, &src_factory);
gstbasesrc_class->start = GST_DEBUG_FUNCPTR (gst_gio_base_src_start);
gstbasesrc_class->stop = GST_DEBUG_FUNCPTR (gst_gio_base_src_stop);
klass->autoplug_select = GST_DEBUG_FUNCPTR (gst_decode_bin_autoplug_select);
klass->autoplug_query = GST_DEBUG_FUNCPTR (gst_decode_bin_autoplug_query);
- gst_element_class_add_pad_template (gstelement_klass,
- gst_static_pad_template_get (&decoder_bin_sink_template));
- gst_element_class_add_pad_template (gstelement_klass,
- gst_static_pad_template_get (&decoder_bin_src_template));
+ gst_element_class_add_static_pad_template (gstelement_klass,
+ &decoder_bin_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_klass,
+ &decoder_bin_src_template);
gst_element_class_set_static_metadata (gstelement_klass,
"Decoder Bin", "Generic/Bin/Decoder",
G_STRUCT_OFFSET (GstPlaySinkClass, convert_sample), NULL, NULL,
g_cclosure_marshal_generic, GST_TYPE_SAMPLE, 1, GST_TYPE_CAPS);
- gst_element_class_add_pad_template (gstelement_klass,
- gst_static_pad_template_get (&audiorawtemplate));
- gst_element_class_add_pad_template (gstelement_klass,
- gst_static_pad_template_get (&audiotemplate));
- gst_element_class_add_pad_template (gstelement_klass,
- gst_static_pad_template_get (&videorawtemplate));
- gst_element_class_add_pad_template (gstelement_klass,
- gst_static_pad_template_get (&videotemplate));
- gst_element_class_add_pad_template (gstelement_klass,
- gst_static_pad_template_get (&texttemplate));
+ gst_element_class_add_static_pad_template (gstelement_klass,
+ &audiorawtemplate);
+ gst_element_class_add_static_pad_template (gstelement_klass, &audiotemplate);
+ gst_element_class_add_static_pad_template (gstelement_klass,
+ &videorawtemplate);
+ gst_element_class_add_static_pad_template (gstelement_klass, &videotemplate);
+ gst_element_class_add_static_pad_template (gstelement_klass, &texttemplate);
gst_element_class_set_static_metadata (gstelement_klass, "Player Sink",
"Generic/Bin/Sink",
"Convenience sink for multiple streams",
gobject_class->dispose = gst_play_sink_convert_bin_dispose;
gobject_class->finalize = gst_play_sink_convert_bin_finalize;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&srctemplate));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&sinktemplate));
+ gst_element_class_add_static_pad_template (gstelement_class, &srctemplate);
+ gst_element_class_add_static_pad_template (gstelement_class, &sinktemplate);
gst_element_class_set_static_metadata (gstelement_class,
"Player Sink Converter Bin", "Bin/Converter",
"Convenience bin for audio/video conversion",
gobject_class->finalize = gst_stream_synchronizer_finalize;
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&srctemplate));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sinktemplate));
+ gst_element_class_add_static_pad_template (element_class, &srctemplate);
+ gst_element_class_add_static_pad_template (element_class, &sinktemplate);
gst_element_class_set_static_metadata (element_class,
"Stream Synchronizer", "Generic",
"ISO-8859-15 will be assumed.", NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&srctemplate));
+ gst_element_class_add_static_pad_template (element_class, &srctemplate);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&video_sinktemplate));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&subtitle_sinktemplate));
+ gst_element_class_add_static_pad_template (element_class,
+ &video_sinktemplate);
+ gst_element_class_add_static_pad_template (element_class,
+ &subtitle_sinktemplate);
gst_element_class_set_static_metadata (element_class, "Subtitle Overlay",
"Video/Overlay/Subtitle",
G_SIGNAL_RUN_LAST, 0, NULL, NULL,
g_cclosure_marshal_generic, G_TYPE_NONE, 1, GST_TYPE_ELEMENT);
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&srctemplate));
+ gst_element_class_add_static_pad_template (gstelement_class, &srctemplate);
gst_element_class_set_static_metadata (gstelement_class,
"URI Decoder", "Generic/Bin/Decoder",
"Autoplug and decode an URI to raw media",
object_class->dispose = gst_ssa_parse_dispose;
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_templ));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&src_templ));
+ gst_element_class_add_static_pad_template (element_class, &sink_templ);
+ gst_element_class_add_static_pad_template (element_class, &src_templ);
gst_element_class_set_static_metadata (element_class,
"SSA Subtitle Parser", "Codec/Parser/Subtitle",
"Parses SSA subtitle streams",
object_class->set_property = gst_sub_parse_set_property;
object_class->get_property = gst_sub_parse_get_property;
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_templ));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&src_templ));
+ gst_element_class_add_static_pad_template (element_class, &sink_templ);
+ gst_element_class_add_static_pad_template (element_class, &src_templ);
gst_element_class_set_static_metadata (element_class,
"Subtitle parser", "Codec/Parser/Subtitle",
"Parses subtitle (.sub) files into text streams",
G_STRUCT_OFFSET (GstMultiHandleSinkClass, clear), NULL, NULL,
g_cclosure_marshal_generic, G_TYPE_NONE, 0);
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&sinktemplate));
+ gst_element_class_add_static_pad_template (gstelement_class, &sinktemplate);
gst_element_class_set_static_metadata (gstelement_class,
"Multi socket sink", "Sink/Network",
G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GstSocketSrcClass,
connection_closed_by_peer), NULL, NULL, NULL, G_TYPE_NONE, 0);
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&srctemplate));
+ gst_element_class_add_static_pad_template (gstelement_class, &srctemplate);
gst_element_class_set_static_metadata (gstelement_class,
"socket source", "Source/Network",
0, TCP_HIGHEST_PORT, TCP_DEFAULT_PORT,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&sinktemplate));
+ gst_element_class_add_static_pad_template (gstelement_class, &sinktemplate);
gst_element_class_set_static_metadata (gstelement_class,
"TCP client sink", "Sink/Network",
TCP_HIGHEST_PORT, TCP_DEFAULT_PORT,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&srctemplate));
+ gst_element_class_add_static_pad_template (gstelement_class, &srctemplate);
gst_element_class_set_static_metadata (gstelement_class,
"TCP client source", "Source/Network",
"The port number the socket is currently bound to", 0,
TCP_HIGHEST_PORT, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&srctemplate));
+ gst_element_class_add_static_pad_template (gstelement_class, &srctemplate);
gst_element_class_set_static_metadata (gstelement_class,
"TCP server source", "Source/Network",
gobject_class->get_property = gst_video_convert_get_property;
gobject_class->finalize = gst_video_convert_finalize;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_video_convert_src_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_video_convert_sink_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_video_convert_src_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_video_convert_sink_template);
gst_element_class_set_static_metadata (gstelement_class,
"Colorspace converter", "Filter/Converter/Video",
"Drops/duplicates/adjusts timestamps on video frames to make a perfect stream",
"Wim Taymans <wim@fluendo.com>");
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_video_rate_sink_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_video_rate_src_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_video_rate_sink_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_video_rate_src_template);
}
static void
"Video test source", "Source/Video",
"Creates a test video stream", "David A. Schleef <ds@schleef.org>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_video_test_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_video_test_src_template);
gstbasesrc_class->set_caps = gst_video_test_src_setcaps;
gstbasesrc_class->fixate = gst_video_test_src_src_fixate;
"Video sink", "Sink/Video",
"A standard X based videosink", "Julien Moutte <julien@moutte.net>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_x_image_sink_sink_template_factory));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_x_image_sink_sink_template_factory);
gstelement_class->change_state = gst_x_image_sink_change_state;
"Video sink", "Sink/Video",
"A Xv based videosink", "Julien Moutte <julien@moutte.net>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_xv_image_sink_sink_template_factory));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_xv_image_sink_sink_template_factory);
gstelement_class->change_state =
GST_DEBUG_FUNCPTR (gst_xv_image_sink_change_state);
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&src_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_template));
+ gst_element_class_add_static_pad_template (element_class, &src_template);
+ gst_element_class_add_static_pad_template (element_class, &sink_template);
}
static GstFlowReturn
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
GstBaseParseClass *parse_class = GST_BASE_PARSE_CLASS (klass);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&src_template));
+ gst_element_class_add_static_pad_template (element_class, &sink_template);
+ gst_element_class_add_static_pad_template (element_class, &src_template);
gst_element_class_set_metadata (element_class, "MPEG1 Audio Parser",
"Codec/Parser/Audio", "Pretends to parse mpeg1 audio stream",
"stream-format=(string) { avc, byte-stream }"));
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_templ));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&src_templ));
+ gst_element_class_add_static_pad_template (element_class, &sink_templ);
+ gst_element_class_add_static_pad_template (element_class, &src_templ);
gst_element_class_set_metadata (element_class,
"FakeH264Parser", "Codec/Parser/Converter/Video", "yep", "me");
}
GST_STATIC_CAPS ("video/x-raw"));
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_templ));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&src_templ));
+ gst_element_class_add_static_pad_template (element_class, &sink_templ);
+ gst_element_class_add_static_pad_template (element_class, &src_templ);
gst_element_class_set_metadata (element_class,
"FakeH264Decoder", "Codec/Decoder/Video", "yep", "me");
}
GST_PAD_SRC, GST_PAD_ALWAYS,
GST_STATIC_CAPS_ANY);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&src_templ));
+ gst_element_class_add_static_pad_template (element_class, &src_templ);
gst_element_class_set_metadata (element_class,
"CapsSource", "Source/Generic", "yep", "me");
g_param_spec_boolean ("mute", "Mute",
"Mute", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_templ));
+ gst_element_class_add_static_pad_template (element_class, &sink_templ);
gst_element_class_set_metadata (element_class,
"AudioCodecSink", "Sink/Audio", "yep", "me");
);
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_templ));
+ gst_element_class_add_static_pad_template (element_class, &sink_templ);
gst_element_class_set_metadata (element_class,
"VideoCodecSink", "Sink/Video", "yep", "me");
gobject_class->finalize = gst_codec_demuxer_finalize;
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&cd_sink_templ));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&cd_src_templ));
+ gst_element_class_add_static_pad_template (element_class, &cd_sink_templ);
+ gst_element_class_add_static_pad_template (element_class, &cd_src_templ);
gst_element_class_set_metadata (element_class,
"CodecDemuxer", "Codec/Demuxer", "yep", "me");
}
GST_VIDEO_CAPS_MAKE (GST_VIDEO_FORMATS_ALL))
);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_templ));
+ gst_element_class_add_static_pad_template (element_class, &sink_templ);
gst_element_class_set_static_metadata (element_class,
"Fake Video Sink1", "Sink/Video",
GST_PAD_SINK, GST_PAD_ALWAYS,
GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE (GST_VIDEO_FORMATS_ALL)));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_templ));
+ gst_element_class_add_static_pad_template (element_class, &sink_templ);
gst_element_class_set_static_metadata (element_class,
"Fake Video Sink2", "Sink/Video",
GST_VIDEO_FORMATS_ALL) ";"
GST_VIDEO_CAPS_MAKE (GST_VIDEO_FORMATS_ALL)));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_templ));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&src_templ));
+ gst_element_class_add_static_pad_template (element_class, &sink_templ);
+ gst_element_class_add_static_pad_template (element_class, &src_templ);
gst_element_class_set_static_metadata (element_class,
"Fake theora video decoder1", "Codec/Decoder/Video",
"decode theora stream",
GST_PAD_SRC, GST_PAD_ALWAYS,
GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE (GST_VIDEO_FORMATS_ALL)));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_templ));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&src_templ));
+ gst_element_class_add_static_pad_template (element_class, &sink_templ);
+ gst_element_class_add_static_pad_template (element_class, &src_templ);
gst_element_class_set_static_metadata (element_class,
"Fake theora video decoder2", "Codec/Decoder/Video",
"decode theora stream",
);
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&src_templ));
+ gst_element_class_add_static_pad_template (element_class, &src_templ);
gst_element_class_set_metadata (element_class,
"Red Video Src", "Source/Video", "yep", "me");
);
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&src_templ));
+ gst_element_class_add_static_pad_template (element_class, &src_templ);
gst_element_class_set_metadata (element_class,
"Codec Src", "Source/Video", "yep", "me");
"Test Reverse Negotiation Sink",
"Sink",
"Some test sink", "Sebastian Dröge <sebastian.droege@collabora.co.uk>");
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&sinktemplate));
+ gst_element_class_add_static_pad_template (gstelement_class, &sinktemplate);
#if 0
gstbase_sink_class->buffer_alloc =
GST_PAD_SRC, GST_PAD_ALWAYS,
GST_STATIC_CAPS ("audio/x-raw"));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_templ));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&src_templ));
+ gst_element_class_add_static_pad_template (element_class, &sink_templ);
+ gst_element_class_add_static_pad_template (element_class, &src_templ);
gst_element_class_set_metadata (element_class,
"AudioDecoderTester", "Decoder/Audio", "yep", "me");
GST_PAD_SRC, GST_PAD_ALWAYS,
GST_STATIC_CAPS ("audio/x-test-custom"));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_templ));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&src_templ));
+ gst_element_class_add_static_pad_template (element_class, &sink_templ);
+ gst_element_class_add_static_pad_template (element_class, &src_templ);
gst_element_class_set_metadata (element_class,
"AudioEncoderTester", "Encoder/Audio", "yep", "me");
"Visualization",
"Dummy test scope", "Stefan Kost <ensonic@users.sf.net>");
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_test_scope_src_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_test_scope_sink_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_test_scope_src_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_test_scope_sink_template);
}
static void
gstelement_class = GST_ELEMENT_CLASS (klass);
gstrtpbasedepayload_class = GST_RTP_BASE_DEPAYLOAD_CLASS (klass);
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_dummy_depay_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_dummy_depay_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_dummy_depay_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_dummy_depay_src_template);
gstrtpbasedepayload_class->process = gst_rtp_dummy_depay_process;
gstrtpbasedepayload_class->set_caps = gst_rtp_dummy_depay_set_caps;
gstelement_class = GST_ELEMENT_CLASS (klass);
gstrtpbasepayload_class = GST_RTP_BASE_PAYLOAD_CLASS (klass);
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_dummy_pay_sink_template));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&gst_rtp_dummy_pay_src_template));
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_dummy_pay_sink_template);
+ gst_element_class_add_static_pad_template (gstelement_class,
+ &gst_rtp_dummy_pay_src_template);
gstrtpbasepayload_class->handle_buffer = gst_rtp_dummy_pay_handle_buffer;
}
GST_PAD_SRC, GST_PAD_ALWAYS,
GST_STATIC_CAPS ("video/x-raw"));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_templ));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&src_templ));
+ gst_element_class_add_static_pad_template (element_class, &sink_templ);
+ gst_element_class_add_static_pad_template (element_class, &src_templ);
gst_element_class_set_metadata (element_class,
"VideoDecoderTester", "Decoder/Video", "yep", "me");
GST_PAD_SRC, GST_PAD_ALWAYS,
GST_STATIC_CAPS ("video/x-test-custom"));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sink_templ));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&src_templ));
+ gst_element_class_add_static_pad_template (element_class, &sink_templ);
+ gst_element_class_add_static_pad_template (element_class, &src_templ);
gst_element_class_set_metadata (element_class,
"VideoEncoderTester", "Encoder/Video", "yep", "me");