mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 05:38:58 +00:00
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.
This commit is contained in:
parent
7f83d0233b
commit
2229ae3f98
2 changed files with 12 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2007-03-04 Jan Schmidt <thaytan@mad.scientist.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2007-03-04 Jan Schmidt <thaytan@mad.scientist.com>
|
2007-03-04 Jan Schmidt <thaytan@mad.scientist.com>
|
||||||
|
|
||||||
* sys/ximage/gstximagesrc.c: (gst_ximage_src_create):
|
* sys/ximage/gstximagesrc.c: (gst_ximage_src_create):
|
||||||
|
|
|
@ -218,8 +218,8 @@ gst_multipart_demux_init (GstMultipartDemux * multipart,
|
||||||
{
|
{
|
||||||
/* create the sink pad */
|
/* create the sink pad */
|
||||||
multipart->sinkpad =
|
multipart->sinkpad =
|
||||||
gst_pad_new_from_template (gst_static_pad_template_get
|
gst_pad_new_from_static_template (&multipart_demux_sink_template_factory,
|
||||||
(&multipart_demux_sink_template_factory), "sink");
|
"sink");
|
||||||
gst_element_add_pad (GST_ELEMENT_CAST (multipart), multipart->sinkpad);
|
gst_element_add_pad (GST_ELEMENT_CAST (multipart), multipart->sinkpad);
|
||||||
gst_pad_set_chain_function (multipart->sinkpad,
|
gst_pad_set_chain_function (multipart->sinkpad,
|
||||||
GST_DEBUG_FUNCPTR (gst_multipart_demux_chain));
|
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);
|
GST_DEBUG_OBJECT (demux, "creating pad with mime: %s", mime);
|
||||||
|
|
||||||
name = g_strdup_printf ("src_%d", demux->numpads);
|
name = g_strdup_printf ("src_%d", demux->numpads);
|
||||||
pad = gst_pad_new_from_template (gst_static_pad_template_get
|
pad =
|
||||||
(&multipart_demux_src_template_factory), name);
|
gst_pad_new_from_static_template (&multipart_demux_src_template_factory,
|
||||||
|
name);
|
||||||
g_free (name);
|
g_free (name);
|
||||||
caps = gst_caps_from_string (mime);
|
caps = gst_caps_from_string (mime);
|
||||||
gst_pad_use_fixed_caps (pad);
|
gst_pad_use_fixed_caps (pad);
|
||||||
|
|
Loading…
Reference in a new issue