summaryrefslogtreecommitdiffstats
path: root/gst/multipart
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2007-03-04 15:07:15 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2007-03-04 15:07:15 +0000
commit2229ae3f98d0bca87b3b739f713a0862ec8507e1 (patch)
tree482cf7139f06e627caf334462670266374416c23 /gst/multipart
parent7f83d0233b8dfc1fd5030604cc1a2d918109b0ca (diff)
gst/multipart/multipartdemux.c: Use gst_pad_new_from_static_template instead of static_pad_template_get+pad_new.
Original commit message from CVS: * gst/multipart/multipartdemux.c: (gst_multipart_demux_init), (gst_multipart_find_pad_by_mime): Use gst_pad_new_from_static_template instead of static_pad_template_get+pad_new.
Diffstat (limited to 'gst/multipart')
-rw-r--r--gst/multipart/multipartdemux.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gst/multipart/multipartdemux.c b/gst/multipart/multipartdemux.c
index b2a4fe69..c5f9f390 100644
--- a/gst/multipart/multipartdemux.c
+++ b/gst/multipart/multipartdemux.c
@@ -218,8 +218,8 @@ gst_multipart_demux_init (GstMultipartDemux * multipart,
{
/* create the sink pad */
multipart->sinkpad =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&multipart_demux_sink_template_factory), "sink");
+ gst_pad_new_from_static_template (&multipart_demux_sink_template_factory,
+ "sink");
gst_element_add_pad (GST_ELEMENT_CAST (multipart), multipart->sinkpad);
gst_pad_set_chain_function (multipart->sinkpad,
GST_DEBUG_FUNCPTR (gst_multipart_demux_chain));
@@ -277,8 +277,9 @@ gst_multipart_find_pad_by_mime (GstMultipartDemux * demux, gchar * mime,
GST_DEBUG_OBJECT (demux, "creating pad with mime: %s", mime);
name = g_strdup_printf ("src_%d", demux->numpads);
- pad = gst_pad_new_from_template (gst_static_pad_template_get
- (&multipart_demux_src_template_factory), name);
+ pad =
+ gst_pad_new_from_static_template (&multipart_demux_src_template_factory,
+ name);
g_free (name);
caps = gst_caps_from_string (mime);
gst_pad_use_fixed_caps (pad);