summaryrefslogtreecommitdiffstats
path: root/gst/rtp
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2006-03-15 16:17:12 +0000
committerEdward Hervey <bilboed@bilboed.com>2006-03-15 16:17:12 +0000
commit50f4eb876a9d272847e22e3349309ce3f7ac42dc (patch)
tree82316dc1608ea22e7da781d625c0b0a76bcc2fac /gst/rtp
parentcd1bbadf591befc4dc6c52c0d5bc1b912ff1c63d (diff)
Fix memleak with gst_static_pad_template_get().
Original commit message from CVS: * ext/cairo/gsttextoverlay.c: (gst_text_overlay_init): * ext/dv/gstdvdemux.c: (gst_dvdemux_init), (gst_dvdemux_add_pads): * ext/gdk_pixbuf/gstgdkpixbuf.c: (gst_gdk_pixbuf_init): * ext/jpeg/gstjpegdec.c: (gst_jpeg_dec_init), (gst_jpeg_dec_setcaps): * ext/jpeg/gstjpegenc.c: (gst_jpegenc_init): * ext/jpeg/gstsmokedec.c: (gst_smokedec_init): * ext/jpeg/gstsmokeenc.c: (gst_smokeenc_init): * ext/libmng/gstmngdec.c: (gst_mngdec_init), (gst_mngdec_src_getcaps): * ext/libpng/gstpngdec.c: (gst_pngdec_init), (gst_pngdec_caps_create_and_set): * ext/libpng/gstpngenc.c: (gst_pngenc_init): * ext/mikmod/gstmikmod.c: (gst_mikmod_init): * ext/speex/gstspeexdec.c: (gst_speex_dec_init): * gst/alpha/gstalpha.c: (gst_alpha_init): * gst/auparse/gstauparse.c: (gst_au_parse_init): * gst/avi/gstavidemux.c: (gst_avi_demux_init), (gst_avi_demux_handle_src_event), (gst_avi_demux_parse_stream): * gst/cutter/gstcutter.c: (gst_cutter_init): * gst/debug/efence.c: (gst_efence_init), (gst_efence_getrange), (gst_efence_checkgetrange): * gst/debug/negotiation.c: (gst_negotiation_init): * gst/flx/gstflxdec.c: (gst_flxdec_init): * gst/goom/gstgoom.c: (gst_goom_init): * gst/rtp/gstasteriskh263.c: (gst_asteriskh263_init): * gst/rtp/gstrtpL16depay.c: (gst_rtp_L16depay_init): * gst/rtp/gstrtpL16pay.c: (gst_rtpL16pay_init): * gst/rtp/gstrtpamrdepay.c: (gst_rtp_amr_depay_init): * gst/rtp/gstrtpdepay.c: (gst_rtp_depay_init): * gst/rtp/gstrtpmpadepay.c: (gst_rtp_mpa_depay_init): * gst/rtsp/gstrtpdec.c: (gst_rtpdec_init): * gst/smpte/gstsmpte.c: (gst_smpte_init): * gst/wavparse/gstwavparse.c: (gst_wavparse_init), (gst_wavparse_create_sourcepad): Fix memleak with gst_static_pad_template_get(). This uses gst_pad_new_from_static_template() instead. Fixes #333512
Diffstat (limited to 'gst/rtp')
-rw-r--r--gst/rtp/gstasteriskh263.c7
-rw-r--r--gst/rtp/gstrtpL16depay.c7
-rw-r--r--gst/rtp/gstrtpL16pay.c6
-rw-r--r--gst/rtp/gstrtpamrdepay.c7
-rw-r--r--gst/rtp/gstrtpdepay.c16
-rw-r--r--gst/rtp/gstrtpmpadepay.c7
6 files changed, 22 insertions, 28 deletions
diff --git a/gst/rtp/gstasteriskh263.c b/gst/rtp/gstasteriskh263.c
index df93cfe4..3fe3326f 100644
--- a/gst/rtp/gstasteriskh263.c
+++ b/gst/rtp/gstasteriskh263.c
@@ -158,13 +158,12 @@ static void
gst_asteriskh263_init (GstAsteriskh263 * asteriskh263)
{
asteriskh263->srcpad =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&gst_asteriskh263_src_template), "src");
+ gst_pad_new_from_static_template (&gst_asteriskh263_src_template, "src");
gst_element_add_pad (GST_ELEMENT (asteriskh263), asteriskh263->srcpad);
asteriskh263->sinkpad =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&gst_asteriskh263_sink_template), "sink");
+ gst_pad_new_from_static_template (&gst_asteriskh263_sink_template,
+ "sink");
gst_pad_set_chain_function (asteriskh263->sinkpad, gst_asteriskh263_chain);
gst_element_add_pad (GST_ELEMENT (asteriskh263), asteriskh263->sinkpad);
diff --git a/gst/rtp/gstrtpL16depay.c b/gst/rtp/gstrtpL16depay.c
index d133fe9a..60e2bcd5 100644
--- a/gst/rtp/gstrtpL16depay.c
+++ b/gst/rtp/gstrtpL16depay.c
@@ -140,11 +140,10 @@ static void
gst_rtp_L16depay_init (GstRtpL16Depay * rtpL16depay)
{
rtpL16depay->srcpad =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&gst_rtp_L16depay_src_template), "src");
+ gst_pad_new_from_static_template (&gst_rtp_L16depay_src_template, "src");
rtpL16depay->sinkpad =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&gst_rtp_L16depay_sink_template), "sink");
+ gst_pad_new_from_static_template (&gst_rtp_L16depay_sink_template,
+ "sink");
gst_element_add_pad (GST_ELEMENT (rtpL16depay), rtpL16depay->srcpad);
gst_element_add_pad (GST_ELEMENT (rtpL16depay), rtpL16depay->sinkpad);
gst_pad_set_chain_function (rtpL16depay->sinkpad, gst_rtp_L16depay_chain);
diff --git a/gst/rtp/gstrtpL16pay.c b/gst/rtp/gstrtpL16pay.c
index f68425c0..3f61d73d 100644
--- a/gst/rtp/gstrtpL16pay.c
+++ b/gst/rtp/gstrtpL16pay.c
@@ -137,11 +137,9 @@ static void
gst_rtpL16pay_init (GstRtpL16Pay * rtpL16enc)
{
rtpL16enc->sinkpad =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&gst_rtpL16pay_sink_template), "sink");
+ gst_pad_new_from_static_template (&gst_rtpL16pay_sink_template, "sink");
rtpL16enc->srcpad =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&gst_rtpL16pay_src_template), "src");
+ gst_pad_new_from_static_template (&gst_rtpL16pay_src_template, "src");
gst_element_add_pad (GST_ELEMENT (rtpL16enc), rtpL16enc->sinkpad);
gst_element_add_pad (GST_ELEMENT (rtpL16enc), rtpL16enc->srcpad);
gst_pad_set_chain_function (rtpL16enc->sinkpad, gst_rtpL16pay_chain);
diff --git a/gst/rtp/gstrtpamrdepay.c b/gst/rtp/gstrtpamrdepay.c
index aa410aa7..3eb08d35 100644
--- a/gst/rtp/gstrtpamrdepay.c
+++ b/gst/rtp/gstrtpamrdepay.c
@@ -159,14 +159,13 @@ static void
gst_rtp_amr_depay_init (GstRtpAMRDepay * rtpamrdepay)
{
rtpamrdepay->srcpad =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&gst_rtp_amr_depay_src_template), "src");
+ gst_pad_new_from_static_template (&gst_rtp_amr_depay_src_template, "src");
gst_element_add_pad (GST_ELEMENT (rtpamrdepay), rtpamrdepay->srcpad);
rtpamrdepay->sinkpad =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&gst_rtp_amr_depay_sink_template), "sink");
+ gst_pad_new_from_static_template (&gst_rtp_amr_depay_sink_template,
+ "sink");
gst_pad_set_setcaps_function (rtpamrdepay->sinkpad,
gst_rtp_amr_depay_sink_setcaps);
gst_pad_set_chain_function (rtpamrdepay->sinkpad, gst_rtp_amr_depay_chain);
diff --git a/gst/rtp/gstrtpdepay.c b/gst/rtp/gstrtpdepay.c
index b525ca96..531f8710 100644
--- a/gst/rtp/gstrtpdepay.c
+++ b/gst/rtp/gstrtpdepay.c
@@ -154,30 +154,30 @@ gst_rtp_depay_init (GstRTPDepay * rtpdepay)
{
/* the input rtp pad */
rtpdepay->sink_rtp =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&gst_rtp_depay_sink_rtp_template), "sinkrtp");
+ gst_pad_new_from_static_template (&gst_rtp_depay_sink_rtp_template,
+ "sinkrtp");
gst_element_add_pad (GST_ELEMENT (rtpdepay), rtpdepay->sink_rtp);
gst_pad_set_getcaps_function (rtpdepay->sink_rtp, gst_rtp_depay_getcaps);
gst_pad_set_chain_function (rtpdepay->sink_rtp, gst_rtp_depay_chain_rtp);
/* the input rtcp pad */
rtpdepay->sink_rtcp =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&gst_rtp_depay_sink_rtcp_template), "sinkrtcp");
+ gst_pad_new_from_static_template (&gst_rtp_depay_sink_rtcp_template,
+ "sinkrtcp");
gst_element_add_pad (GST_ELEMENT (rtpdepay), rtpdepay->sink_rtcp);
gst_pad_set_chain_function (rtpdepay->sink_rtcp, gst_rtp_depay_chain_rtcp);
/* the output rtp pad */
rtpdepay->src_rtp =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&gst_rtp_depay_src_rtp_template), "srcrtp");
+ gst_pad_new_from_static_template (&gst_rtp_depay_src_rtp_template,
+ "srcrtp");
gst_pad_set_getcaps_function (rtpdepay->src_rtp, gst_rtp_depay_getcaps);
gst_element_add_pad (GST_ELEMENT (rtpdepay), rtpdepay->src_rtp);
/* the output rtcp pad */
rtpdepay->src_rtcp =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&gst_rtp_depay_src_rtcp_template), "srcrtcp");
+ gst_pad_new_from_static_template (&gst_rtp_depay_src_rtcp_template,
+ "srcrtcp");
gst_element_add_pad (GST_ELEMENT (rtpdepay), rtpdepay->src_rtcp);
}
diff --git a/gst/rtp/gstrtpmpadepay.c b/gst/rtp/gstrtpmpadepay.c
index 3a6e7fe4..046efe93 100644
--- a/gst/rtp/gstrtpmpadepay.c
+++ b/gst/rtp/gstrtpmpadepay.c
@@ -134,13 +134,12 @@ static void
gst_rtp_mpa_depay_init (GstRtpMPADepay * rtpmpadepay)
{
rtpmpadepay->srcpad =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&gst_rtp_mpa_depay_src_template), "src");
+ gst_pad_new_from_static_template (&gst_rtp_mpa_depay_src_template, "src");
gst_element_add_pad (GST_ELEMENT (rtpmpadepay), rtpmpadepay->srcpad);
rtpmpadepay->sinkpad =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&gst_rtp_mpa_depay_sink_template), "sink");
+ gst_pad_new_from_static_template (&gst_rtp_mpa_depay_sink_template,
+ "sink");
gst_pad_set_chain_function (rtpmpadepay->sinkpad, gst_rtp_mpa_depay_chain);
gst_element_add_pad (GST_ELEMENT (rtpmpadepay), rtpmpadepay->sinkpad);
}