From: <bi...@ke...> - 2007-06-22 10:46:57
|
CVS Root: /cvs/gstreamer Module: gst-plugins-bad Changes by: bilboed Date: Fri Jun 22 2007 10:46:47 UTC Log message: * ext/amrwb/gstamrwbdec.c: (gst_amrwbdec_init): * ext/amrwb/gstamrwbenc.c: (gst_amrwbenc_init): * ext/amrwb/gstamrwbparse.c: (gst_amrwbparse_init): * ext/audioresample/gstaudioresample.c: * ext/bz2/gstbz2dec.c: (gst_bz2dec_init): * ext/bz2/gstbz2enc.c: (gst_bz2enc_init): * ext/divx/gstdivxdec.c: (gst_divxdec_init): * ext/divx/gstdivxenc.c: (gst_divxenc_init): * ext/faac/gstfaac.c: (gst_faac_init): * ext/gsm/gstgsmdec.c: (gst_gsmdec_init): * ext/gsm/gstgsmenc.c: (gst_gsmenc_init): * ext/hermes/gsthermescolorspace.c: (gst_hermes_colorspace_init): * ext/lcs/gstcolorspace.c: (gst_colorspace_init): * ext/libfame/gstlibfame.c: (gst_fameenc_init): * ext/snapshot/gstsnapshot.c: (gst_snapshot_init): * ext/spc/gstspc.c: (gst_spc_dec_init): * ext/swfdec/gstswfdec.c: (gst_swfdec_init): * ext/xvid/gstxvidenc.c: (gst_xvidenc_init): * gst/cdxaparse/gstcdxaparse.c: (gst_cdxa_parse_init): * gst/cdxaparse/gstcdxastrip.c: (gst_cdxastrip_init): * gst/chart/gstchart.c: (gst_chart_init): * gst/colorspace/gstcolorspace.c: (gst_colorspace_init): * gst/festival/gstfestival.c: (gst_festival_init): * gst/freeze/gstfreeze.c: (gst_freeze_init): * gst/mixmatrix/mixmatrix.c: (gst_mixmatrix_request_new_pad): * gst/mpeg1sys/gstmpeg1systemencode.c: (gst_system_encode_init): * gst/mpeg2sub/gstmpeg2subt.c: (gst_mpeg2subt_init): * gst/nsf/gstnsf.c: (gst_nsfdec_init): * gst/overlay/gstoverlay.c: (gst_overlay_init): * gst/passthrough/gstpassthrough.c: (passthrough_init): * gst/playondemand/gstplayondemand.c: (play_on_demand_init): * gst/smooth/gstsmooth.c: (gst_smooth_init): * gst/smoothwave/gstsmoothwave.c: (gst_smoothwave_init): * gst/speed/gstspeed.c: (speed_init): * gst/vbidec/gstvbidec.c: (gst_vbidec_init): * gst/videodrop/gstvideodrop.c: (gst_videodrop_init): * sys/dxr3/dxr3spusink.c: (dxr3spusink_init): * sys/dxr3/dxr3videosink.c: (dxr3videosink_init): * sys/qcam/gstqcamsrc.c: (gst_qcamsrc_init): Fix leaks. Modified files: . : ChangeLog ext/amrwb : gstamrwbdec.c gstamrwbenc.c gstamrwbparse.c ext/audioresample: gstaudioresample.c ext/bz2 : gstbz2dec.c gstbz2enc.c ext/divx : gstdivxdec.c gstdivxenc.c ext/faac : gstfaac.c ext/gsm : gstgsmdec.c gstgsmenc.c ext/hermes : gsthermescolorspace.c ext/lcs : gstcolorspace.c ext/libfame : gstlibfame.c ext/snapshot : gstsnapshot.c ext/spc : gstspc.c ext/swfdec : gstswfdec.c ext/xvid : gstxvidenc.c gst/cdxaparse : gstcdxaparse.c gstcdxastrip.c gst/chart : gstchart.c gst/colorspace : gstcolorspace.c gst/festival : gstfestival.c gst/freeze : gstfreeze.c gst/mixmatrix : mixmatrix.c gst/mpeg1sys : gstmpeg1systemencode.c gst/mpeg2sub : gstmpeg2subt.c gst/nsf : gstnsf.c gst/overlay : gstoverlay.c gst/passthrough : gstpassthrough.c gst/playondemand: gstplayondemand.c gst/smooth : gstsmooth.c gst/smoothwave : gstsmoothwave.c gst/speed : gstspeed.c gst/vbidec : gstvbidec.c gst/videodrop : gstvideodrop.c sys/dxr3 : dxr3spusink.c dxr3videosink.c sys/qcam : gstqcamsrc.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ChangeLog.diff?r1=1.2606&r2=1.2607 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ext/amrwb/gstamrwbdec.c.diff?r1=1.8&r2=1.9 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ext/amrwb/gstamrwbenc.c.diff?r1=1.6&r2=1.7 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ext/amrwb/gstamrwbparse.c.diff?r1=1.8&r2=1.9 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ext/audioresample/gstaudioresample.c.diff?r1=1.6&r2=1.7 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ext/bz2/gstbz2dec.c.diff?r1=1.6&r2=1.7 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ext/bz2/gstbz2enc.c.diff?r1=1.5&r2=1.6 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ext/divx/gstdivxdec.c.diff?r1=1.34&r2=1.35 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ext/divx/gstdivxenc.c.diff?r1=1.36&r2=1.37 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ext/faac/gstfaac.c.diff?r1=1.26&r2=1.27 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ext/gsm/gstgsmdec.c.diff?r1=1.35&r2=1.36 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ext/gsm/gstgsmenc.c.diff?r1=1.33&r2=1.34 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ext/hermes/gsthermescolorspace.c.diff?r1=1.15&r2=1.16 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ext/lcs/gstcolorspace.c.diff?r1=1.30&r2=1.31 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ext/libfame/gstlibfame.c.diff?r1=1.27&r2=1.28 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ext/snapshot/gstsnapshot.c.diff?r1=1.23&r2=1.24 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ext/spc/gstspc.c.diff?r1=1.2&r2=1.3 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ext/swfdec/gstswfdec.c.diff?r1=1.46&r2=1.47 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ext/xvid/gstxvidenc.c.diff?r1=1.39&r2=1.40 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/gst/cdxaparse/gstcdxaparse.c.diff?r1=1.29&r2=1.30 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/gst/cdxaparse/gstcdxastrip.c.diff?r1=1.6&r2=1.7 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/gst/chart/gstchart.c.diff?r1=1.32&r2=1.33 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/gst/colorspace/gstcolorspace.c.diff?r1=1.17&r2=1.18 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/gst/festival/gstfestival.c.diff?r1=1.25&r2=1.26 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/gst/freeze/gstfreeze.c.diff?r1=1.8&r2=1.9 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/gst/mixmatrix/mixmatrix.c.diff?r1=1.31&r2=1.32 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/gst/mpeg1sys/gstmpeg1systemencode.c.diff?r1=1.30&r2=1.31 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/gst/mpeg2sub/gstmpeg2subt.c.diff?r1=1.32&r2=1.33 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/gst/nsf/gstnsf.c.diff?r1=1.2&r2=1.3 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/gst/overlay/gstoverlay.c.diff?r1=1.16&r2=1.17 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/gst/passthrough/gstpassthrough.c.diff?r1=1.27&r2=1.28 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/gst/playondemand/gstplayondemand.c.diff?r1=1.32&r2=1.33 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/gst/smooth/gstsmooth.c.diff?r1=1.27&r2=1.28 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/gst/smoothwave/gstsmoothwave.c.diff?r1=1.23&r2=1.24 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/gst/speed/gstspeed.c.diff?r1=1.46&r2=1.47 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/gst/vbidec/gstvbidec.c.diff?r1=1.16&r2=1.17 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/gst/videodrop/gstvideodrop.c.diff?r1=1.19&r2=1.20 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/sys/dxr3/dxr3spusink.c.diff?r1=1.22&r2=1.23 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/sys/dxr3/dxr3videosink.c.diff?r1=1.22&r2=1.23 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/sys/qcam/gstqcamsrc.c.diff?r1=1.25&r2=1.26 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gst-plugins-bad/ChangeLog,v retrieving revision 1.2606 retrieving revision 1.2607 diff -u -d -r1.2606 -r1.2607 --- ChangeLog 21 Jun 2007 18:41:17 -0000 1.2606 +++ ChangeLog 22 Jun 2007 10:46:29 -0000 1.2607 @@ -1,3 +1,46 @@ +2007-06-22 Edward Hervey <ed...@fl...> + + * ext/amrwb/gstamrwbdec.c: (gst_amrwbdec_init): + * ext/amrwb/gstamrwbenc.c: (gst_amrwbenc_init): + * ext/amrwb/gstamrwbparse.c: (gst_amrwbparse_init): + * ext/audioresample/gstaudioresample.c: + * ext/bz2/gstbz2dec.c: (gst_bz2dec_init): + * ext/bz2/gstbz2enc.c: (gst_bz2enc_init): + * ext/divx/gstdivxdec.c: (gst_divxdec_init): + * ext/divx/gstdivxenc.c: (gst_divxenc_init): + * ext/faac/gstfaac.c: (gst_faac_init): + * ext/gsm/gstgsmdec.c: (gst_gsmdec_init): + * ext/gsm/gstgsmenc.c: (gst_gsmenc_init): + * ext/hermes/gsthermescolorspace.c: (gst_hermes_colorspace_init): + * ext/lcs/gstcolorspace.c: (gst_colorspace_init): + * ext/libfame/gstlibfame.c: (gst_fameenc_init): + * ext/snapshot/gstsnapshot.c: (gst_snapshot_init): + * ext/spc/gstspc.c: (gst_spc_dec_init): + * ext/swfdec/gstswfdec.c: (gst_swfdec_init): + * ext/xvid/gstxvidenc.c: (gst_xvidenc_init): + * gst/cdxaparse/gstcdxaparse.c: (gst_cdxa_parse_init): + * gst/cdxaparse/gstcdxastrip.c: (gst_cdxastrip_init): + * gst/chart/gstchart.c: (gst_chart_init): + * gst/colorspace/gstcolorspace.c: (gst_colorspace_init): + * gst/festival/gstfestival.c: (gst_festival_init): + * gst/freeze/gstfreeze.c: (gst_freeze_init): + * gst/mixmatrix/mixmatrix.c: (gst_mixmatrix_request_new_pad): + * gst/mpeg1sys/gstmpeg1systemencode.c: (gst_system_encode_init): + * gst/mpeg2sub/gstmpeg2subt.c: (gst_mpeg2subt_init): + * gst/nsf/gstnsf.c: (gst_nsfdec_init): + * gst/overlay/gstoverlay.c: (gst_overlay_init): + * gst/passthrough/gstpassthrough.c: (passthrough_init): + * gst/playondemand/gstplayondemand.c: (play_on_demand_init): + * gst/smooth/gstsmooth.c: (gst_smooth_init): + * gst/smoothwave/gstsmoothwave.c: (gst_smoothwave_init): + * gst/speed/gstspeed.c: (speed_init): + * gst/vbidec/gstvbidec.c: (gst_vbidec_init): + * gst/videodrop/gstvideodrop.c: (gst_videodrop_init): + * sys/dxr3/dxr3spusink.c: (dxr3spusink_init): + * sys/dxr3/dxr3videosink.c: (dxr3videosink_init): + * sys/qcam/gstqcamsrc.c: (gst_qcamsrc_init): + Fix leaks. 2007-06-21 Tim-Philipp Müller <tim at centricular dot net> * RELEASE: Index: gstamrwbdec.c RCS file: /cvs/gstreamer/gst-plugins-bad/ext/amrwb/gstamrwbdec.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- gstamrwbdec.c 20 Jun 2007 08:42:17 -0000 1.8 +++ gstamrwbdec.c 22 Jun 2007 10:46:29 -0000 1.9 @@ -97,18 +97,14 @@ gst_amrwbdec_init (GstAmrwbDec * amrwbdec, GstAmrwbDecClass * klass) { /* create the sink pad */ - amrwbdec->sinkpad = - gst_pad_new_from_template (gst_static_pad_template_get (&sink_template), - "sink"); + amrwbdec->sinkpad = gst_pad_new_from_static_template (&sink_template, "sink"); gst_pad_set_setcaps_function (amrwbdec->sinkpad, gst_amrwbdec_setcaps); gst_pad_set_event_function (amrwbdec->sinkpad, gst_amrwbdec_event); gst_pad_set_chain_function (amrwbdec->sinkpad, gst_amrwbdec_chain); gst_element_add_pad (GST_ELEMENT (amrwbdec), amrwbdec->sinkpad); /* create the src pad */ - amrwbdec->srcpad = - gst_pad_new_from_template (gst_static_pad_template_get (&src_template), - "src"); + amrwbdec->srcpad = gst_pad_new_from_static_template (&src_template, "src"); gst_pad_use_fixed_caps (amrwbdec->srcpad); gst_element_add_pad (GST_ELEMENT (amrwbdec), amrwbdec->srcpad); Index: gstamrwbenc.c RCS file: /cvs/gstreamer/gst-plugins-bad/ext/amrwb/gstamrwbenc.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- gstamrwbenc.c 18 May 2007 09:35:28 -0000 1.6 +++ gstamrwbenc.c 22 Jun 2007 10:46:29 -0000 1.7 @@ -89,17 +89,13 @@ gst_amrwbenc_init (GstAmrwbEnc * amrwbenc, GstAmrwbEncClass * klass) - amrwbenc->sinkpad = + amrwbenc->sinkpad = gst_pad_new_from_static_template (&sink_template, "sink"); gst_pad_set_setcaps_function (amrwbenc->sinkpad, gst_amrwbenc_setcaps); gst_pad_set_chain_function (amrwbenc->sinkpad, gst_amrwbenc_chain); gst_element_add_pad (GST_ELEMENT (amrwbenc), amrwbenc->sinkpad); - amrwbenc->srcpad = + amrwbenc->srcpad = gst_pad_new_from_static_template (&src_template, "src"); gst_pad_use_fixed_caps (amrwbenc->srcpad); gst_element_add_pad (GST_ELEMENT (amrwbenc), amrwbenc->srcpad); Index: gstamrwbparse.c RCS file: /cvs/gstreamer/gst-plugins-bad/ext/amrwb/gstamrwbparse.c,v --- gstamrwbparse.c 20 Jun 2007 08:42:17 -0000 1.8 +++ gstamrwbparse.c 22 Jun 2007 10:46:29 -0000 1.9 @@ -95,8 +95,7 @@ amrwbparse->sinkpad = + gst_pad_new_from_static_template (&sink_template, "sink"); gst_pad_set_chain_function (amrwbparse->sinkpad, GST_DEBUG_FUNCPTR (gst_amrwbparse_chain)); @@ -108,9 +107,7 @@ gst_element_add_pad (GST_ELEMENT (amrwbparse), amrwbparse->sinkpad); - amrwbparse->srcpad = + amrwbparse->srcpad = gst_pad_new_from_static_template (&src_template, "src"); gst_pad_set_query_function (amrwbparse->srcpad, GST_DEBUG_FUNCPTR (gst_amrwbparse_query)); gst_pad_set_query_type_function (amrwbparse->srcpad, Index: gstaudioresample.c RCS file: /cvs/gstreamer/gst-plugins-bad/ext/audioresample/gstaudioresample.c,v --- gstaudioresample.c 25 Apr 2006 21:56:29 -0000 1.6 +++ gstaudioresample.c 22 Jun 2007 10:46:29 -0000 1.7 @@ -282,8 +282,8 @@ ResampleState *r; audioresample->sinkpad = - gst_pad_new_from_template (gst_static_pad_template_get - (&gst_audioresample_sink_template), "sink"); + gst_pad_new_from_static_template (&gst_audioresample_sink_template, + "sink"); gst_element_add_pad (GST_ELEMENT (audioresample), audioresample->sinkpad); gst_pad_set_chain_function (audioresample->sinkpad, gst_audioresample_chain); gst_pad_set_link_function (audioresample->sinkpad, gst_audioresample_link); @@ -293,8 +293,7 @@ gst_audioresample_fixate); audioresample->srcpad = - (&gst_audioresample_src_template), "src"); + gst_pad_new_from_static_template (&gst_audioresample_src_template, "src"); gst_element_add_pad (GST_ELEMENT (audioresample), audioresample->srcpad); gst_pad_set_link_function (audioresample->srcpad, gst_audioresample_link); Index: gstbz2dec.c RCS file: /cvs/gstreamer/gst-plugins-bad/ext/bz2/gstbz2dec.c,v --- gstbz2dec.c 28 May 2006 17:08:17 -0000 1.6 +++ gstbz2dec.c 22 Jun 2007 10:46:29 -0000 1.7 @@ -179,14 +179,10 @@ b->first_buffer_size = DEFAULT_FIRST_BUFFER_SIZE; b->buffer_size = DEFAULT_BUFFER_SIZE; - pad = + pad = gst_pad_new_from_static_template (&sink_template, "sink"); gst_pad_set_chain_function (pad, gst_bz2dec_chain); gst_element_add_pad (GST_ELEMENT (b), pad); + pad = gst_pad_new_from_static_template (&src_template, "src"); gst_pad_use_fixed_caps (pad); Index: gstbz2enc.c RCS file: /cvs/gstreamer/gst-plugins-bad/ext/bz2/gstbz2enc.c,v retrieving revision 1.5 diff -u -d -r1.5 -r1.6 --- gstbz2enc.c 25 Apr 2006 21:56:29 -0000 1.5 +++ gstbz2enc.c 22 Jun 2007 10:46:29 -0000 1.6 @@ -210,15 +210,11 @@ GstPad *pad; gst_pad_set_chain_function (pad, gst_bz2enc_chain); gst_pad_set_event_function (pad, gst_bz2enc_event); b->block_size = DEFAULT_BLOCK_SIZE; Index: gstdivxdec.c RCS file: /cvs/gstreamer/gst-plugins-bad/ext/divx/gstdivxdec.c,v retrieving revision 1.34 retrieving revision 1.35 diff -u -d -r1.34 -r1.35 --- gstdivxdec.c 25 Apr 2006 21:56:29 -0000 1.34 +++ gstdivxdec.c 22 Jun 2007 10:46:30 -0000 1.35 @@ -163,17 +163,13 @@ gst_divxdec_init (GstDivxDec * divxdec) - divxdec->sinkpad = + divxdec->sinkpad = gst_pad_new_from_static_template (&sink_template, "sink"); gst_element_add_pad (GST_ELEMENT (divxdec), divxdec->sinkpad); gst_pad_set_chain_function (divxdec->sinkpad, gst_divxdec_chain); gst_pad_set_setcaps_function (divxdec->sinkpad, gst_divxdec_connect); - divxdec->srcpad = + divxdec->srcpad = gst_pad_new_from_static_template (&src_template, "src"); gst_element_add_pad (GST_ELEMENT (divxdec), divxdec->srcpad); gst_pad_use_fixed_caps (divxdec->srcpad); Index: gstdivxenc.c RCS file: /cvs/gstreamer/gst-plugins-bad/ext/divx/gstdivxenc.c,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- gstdivxenc.c 25 Apr 2006 21:56:29 -0000 1.36 +++ gstdivxenc.c 22 Jun 2007 10:46:30 -0000 1.37 @@ -198,18 +198,14 @@ gst_divxenc_init (GstDivxEnc * divxenc) - divxenc->sinkpad = + divxenc->sinkpad = gst_pad_new_from_static_template (&sink_template, "sink"); gst_element_add_pad (GST_ELEMENT (divxenc), divxenc->sinkpad); gst_pad_set_chain_function (divxenc->sinkpad, gst_divxenc_chain); gst_pad_set_setcaps_function (divxenc->sinkpad, gst_divxenc_setcaps); - divxenc->srcpad = + divxenc->srcpad = gst_pad_new_from_static_template (&src_template, "src"); gst_pad_use_fixed_caps (divxenc->srcpad); gst_element_add_pad (GST_ELEMENT (divxenc), divxenc->srcpad); Index: gstfaac.c RCS file: /cvs/gstreamer/gst-plugins-bad/ext/faac/gstfaac.c,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- gstfaac.c 21 Sep 2006 13:41:42 -0000 1.26 +++ gstfaac.c 22 Jun 2007 10:46:30 -0000 1.27 @@ -251,9 +251,7 @@ faac->cache_time = GST_CLOCK_TIME_NONE; faac->cache_duration = 0; - faac->sinkpad = + faac->sinkpad = gst_pad_new_from_static_template (&sink_template, "sink"); gst_pad_set_chain_function (faac->sinkpad, GST_DEBUG_FUNCPTR (gst_faac_chain)); gst_pad_set_setcaps_function (faac->sinkpad, @@ -262,9 +260,7 @@ GST_DEBUG_FUNCPTR (gst_faac_sink_event)); gst_element_add_pad (GST_ELEMENT (faac), faac->sinkpad); - faac->srcpad = + faac->srcpad = gst_pad_new_from_static_template (&src_template, "src"); gst_pad_use_fixed_caps (faac->srcpad); gst_element_add_pad (GST_ELEMENT (faac), faac->srcpad); Index: gstgsmdec.c RCS file: /cvs/gstreamer/gst-plugins-bad/ext/gsm/gstgsmdec.c,v diff -u -d -r1.35 -r1.36 --- gstgsmdec.c 19 Sep 2006 10:10:12 -0000 1.35 +++ gstgsmdec.c 22 Jun 2007 10:46:30 -0000 1.36 @@ -139,16 +139,14 @@ /* create the sink and src pads */ gsmdec->sinkpad = - (&gsmdec_sink_template), "sink"); + gst_pad_new_from_static_template (&gsmdec_sink_template, "sink"); gst_pad_set_setcaps_function (gsmdec->sinkpad, gst_gsmdec_sink_setcaps); gst_pad_set_event_function (gsmdec->sinkpad, gst_gsmdec_sink_event); gst_pad_set_chain_function (gsmdec->sinkpad, gst_gsmdec_chain); gst_element_add_pad (GST_ELEMENT (gsmdec), gsmdec->sinkpad); gsmdec->srcpad = - (&gsmdec_src_template), "src"); + gst_pad_new_from_static_template (&gsmdec_src_template, "src"); gst_element_add_pad (GST_ELEMENT (gsmdec), gsmdec->srcpad); gsmdec->state = gsm_create (); Index: gstgsmenc.c RCS file: /cvs/gstreamer/gst-plugins-bad/ext/gsm/gstgsmenc.c,v retrieving revision 1.33 diff -u -d -r1.33 -r1.34 --- gstgsmenc.c 12 Jan 2007 10:24:29 -0000 1.33 +++ gstgsmenc.c 22 Jun 2007 10:46:30 -0000 1.34 @@ -137,15 +137,13 @@ gsmenc->sinkpad = - (&gsmenc_sink_template), "sink"); + gst_pad_new_from_static_template (&gsmenc_sink_template, "sink"); gst_pad_set_chain_function (gsmenc->sinkpad, gst_gsmenc_chain); gst_pad_set_setcaps_function (gsmenc->sinkpad, gst_gsmenc_setcaps); gst_element_add_pad (GST_ELEMENT (gsmenc), gsmenc->sinkpad); gsmenc->srcpad = - (&gsmenc_src_template), "src"); + gst_pad_new_from_static_template (&gsmenc_src_template, "src"); gst_element_add_pad (GST_ELEMENT (gsmenc), gsmenc->srcpad); gsmenc->state = gsm_create (); Index: gsthermescolorspace.c RCS file: /cvs/gstreamer/gst-plugins-bad/ext/hermes/gsthermescolorspace.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- gsthermescolorspace.c 16 Sep 2006 22:14:35 -0000 1.15 +++ gsthermescolorspace.c 22 Jun 2007 10:46:30 -0000 1.16 @@ -537,16 +537,16 @@ gst_hermes_colorspace_init (GstHermesColorspace * space) space->sinkpad = - (&gst_hermes_colorspace_sink_pad_template), "sink"); + gst_pad_new_from_static_template + (&gst_hermes_colorspace_sink_pad_template, "sink"); gst_pad_set_link_function (space->sinkpad, gst_hermes_colorspace_link); gst_pad_set_getcaps_function (space->sinkpad, gst_hermes_colorspace_getcaps); gst_pad_set_chain_function (space->sinkpad, gst_hermes_colorspace_chain); gst_element_add_pad (GST_ELEMENT (space), space->sinkpad); space->srcpad = - (&gst_hermes_colorspace_src_pad_template), "src"); + gst_pad_new_from_static_template (&gst_hermes_colorspace_src_pad_template, + "src"); gst_element_add_pad (GST_ELEMENT (space), space->srcpad); gst_pad_set_link_function (space->srcpad, gst_hermes_colorspace_link); Index: gstcolorspace.c RCS file: /cvs/gstreamer/gst-plugins-bad/ext/lcs/gstcolorspace.c,v retrieving revision 1.30 retrieving revision 1.31 diff -u -d -r1.30 -r1.31 --- gstcolorspace.c 16 Sep 2006 22:14:35 -0000 1.30 +++ gstcolorspace.c 22 Jun 2007 10:46:30 -0000 1.31 @@ -370,16 +370,14 @@ gst_colorspace_init (GstColorspace * space) - (&gst_colorspace_sink_template), "sink"); + gst_pad_new_from_static_template (&gst_colorspace_sink_template, "sink"); gst_pad_set_link_function (space->sinkpad, gst_colorspace_link); gst_pad_set_getcaps_function (space->sinkpad, gst_colorspace_getcaps); gst_pad_set_chain_function (space->sinkpad, gst_colorspace_chain); - (&gst_colorspace_src_template), "src"); + gst_pad_new_from_static_template (&gst_colorspace_src_template, "src"); gst_pad_set_link_function (space->srcpad, gst_colorspace_link); Index: gstlibfame.c RCS file: /cvs/gstreamer/gst-plugins-bad/ext/libfame/gstlibfame.c,v retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- gstlibfame.c 15 Aug 2006 19:29:58 -0000 1.27 +++ gstlibfame.c 22 Jun 2007 10:46:30 -0000 1.28 @@ -363,16 +363,12 @@ g_assert (fameenc->fc != NULL); - fameenc->sinkpad = + fameenc->sinkpad = gst_pad_new_from_static_template (&sink_template, "sink"); gst_element_add_pad (GST_ELEMENT (fameenc), fameenc->sinkpad); gst_pad_set_chain_function (fameenc->sinkpad, gst_fameenc_chain); gst_pad_set_link_function (fameenc->sinkpad, gst_fameenc_sink_link); - fameenc->srcpad = + fameenc->srcpad = gst_pad_new_from_static_template (&src_template, "src"); gst_element_add_pad (GST_ELEMENT (fameenc), fameenc->srcpad); /* FIXME: set some more handler functions here */ Index: gstsnapshot.c RCS file: /cvs/gstreamer/gst-plugins-bad/ext/snapshot/gstsnapshot.c,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- gstsnapshot.c 25 Apr 2006 21:56:31 -0000 1.23 +++ gstsnapshot.c 22 Jun 2007 10:46:30 -0000 1.24 @@ -194,15 +194,13 @@ gst_snapshot_init (GstSnapshot * snapshot) snapshot->sinkpad = - (&snapshot_sink_factory), "sink"); + gst_pad_new_from_static_template (&snapshot_sink_factory, "sink"); gst_pad_set_link_function (snapshot->sinkpad, gst_snapshot_sinkconnect); gst_pad_set_chain_function (snapshot->sinkpad, gst_snapshot_chain); gst_element_add_pad (GST_ELEMENT (snapshot), snapshot->sinkpad); snapshot->srcpad = - (&snapshot_src_factory), "src"); + gst_pad_new_from_static_template (&snapshot_src_factory, "src"); gst_element_add_pad (GST_ELEMENT (snapshot), snapshot->srcpad); snapshot->cur_frame = 0; Index: gstspc.c RCS file: /cvs/gstreamer/gst-plugins-bad/ext/spc/gstspc.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- gstspc.c 16 Nov 2006 18:22:37 -0000 1.2 +++ gstspc.c 22 Jun 2007 10:46:30 -0000 1.3 @@ -124,17 +124,13 @@ static void gst_spc_dec_init (GstSpcDec * spc, GstSpcDecClass * klass) - spc->sinkpad = - gst_pad_new_from_template (gst_static_pad_template_get (&sink_factory), + spc->sinkpad = gst_pad_new_from_static_template (&sink_factory, "sink"); gst_pad_set_query_function (spc->sinkpad, NULL); gst_pad_set_event_function (spc->sinkpad, gst_spc_dec_sink_event); gst_pad_set_chain_function (spc->sinkpad, gst_spc_dec_chain); gst_element_add_pad (GST_ELEMENT (spc), spc->sinkpad); - spc->srcpad = - gst_pad_new_from_template (gst_static_pad_template_get (&src_factory), + spc->srcpad = gst_pad_new_from_static_template (&src_factory, "src"); gst_pad_set_event_function (spc->srcpad, gst_spc_dec_src_event); gst_pad_set_query_function (spc->srcpad, gst_spc_dec_src_query); gst_pad_use_fixed_caps (spc->srcpad); Index: gstswfdec.c RCS file: /cvs/gstreamer/gst-plugins-bad/ext/swfdec/gstswfdec.c,v retrieving revision 1.46 retrieving revision 1.47 diff -u -d -r1.46 -r1.47 --- gstswfdec.c 25 Apr 2006 21:56:31 -0000 1.46 +++ gstswfdec.c 22 Jun 2007 10:46:30 -0000 1.47 @@ -536,16 +536,14 @@ swfdec->sinkpad = - (&sink_template_factory), "sink"); + gst_pad_new_from_static_template (&sink_template_factory, "sink"); gst_element_add_pad (GST_ELEMENT (swfdec), swfdec->sinkpad); gst_pad_set_chain_function (swfdec->sinkpad, gst_swfdec_chain); gst_pad_set_event_function (swfdec->sinkpad, gst_swfdec_sink_event); swfdec->videopad = - (&video_template_factory), "video_00"); + gst_pad_new_from_static_template (&video_template_factory, "video_00"); gst_pad_set_query_function (swfdec->videopad, gst_swfdec_src_query); gst_pad_set_getcaps_function (swfdec->videopad, gst_swfdec_video_getcaps); gst_pad_set_setcaps_function (swfdec->videopad, gst_swfdec_video_link); @@ -557,8 +555,7 @@ gst_element_add_pad (GST_ELEMENT (swfdec), swfdec->videopad); swfdec->audiopad = - (&audio_template_factory), "audio_00"); + gst_pad_new_from_static_template (&audio_template_factory, "audio_00"); gst_pad_set_query_function (swfdec->audiopad, gst_swfdec_src_query); gst_pad_set_event_function (swfdec->audiopad, gst_swfdec_src_event); Index: gstchart.c RCS file: /cvs/gstreamer/gst-plugins-bad/gst/chart/gstchart.c,v retrieving revision 1.32 diff -u -d -r1.32 -r1.33 --- gstchart.c 16 Sep 2006 22:14:35 -0000 1.32 +++ gstchart.c 22 Jun 2007 10:46:31 -0000 1.33 @@ -172,12 +172,8 @@ gst_chart_init (GstChart * chart) - chart->sinkpad = - chart->srcpad = + chart->sinkpad = gst_pad_new_from_static_template (&sink_factory, "sink"); + chart->srcpad = gst_pad_new_from_static_template (&src_factory, "src"); gst_element_add_pad (GST_ELEMENT (chart), chart->sinkpad); gst_element_add_pad (GST_ELEMENT (chart), chart->srcpad); Index: gstxvidenc.c RCS file: /cvs/gstreamer/gst-plugins-bad/ext/xvid/gstxvidenc.c,v retrieving revision 1.39 retrieving revision 1.40 diff -u -d -r1.39 -r1.40 --- gstxvidenc.c 3 Jan 2007 16:41:10 -0000 1.39 +++ gstxvidenc.c 22 Jun 2007 10:46:30 -0000 1.40 @@ -475,9 +475,7 @@ guint i, num_props; - xvidenc->sinkpad = + xvidenc->sinkpad = gst_pad_new_from_static_template (&sink_template, "sink"); gst_element_add_pad (GST_ELEMENT (xvidenc), xvidenc->sinkpad); gst_pad_set_chain_function (xvidenc->sinkpad, @@ -488,9 +486,7 @@ GST_DEBUG_FUNCPTR (gst_xvidenc_handle_sink_event)); - xvidenc->srcpad = + xvidenc->srcpad = gst_pad_new_from_static_template (&src_template, "src"); gst_element_add_pad (GST_ELEMENT (xvidenc), xvidenc->srcpad); gst_pad_use_fixed_caps (xvidenc->srcpad); Index: gstcdxaparse.c RCS file: /cvs/gstreamer/gst-plugins-bad/gst/cdxaparse/gstcdxaparse.c,v retrieving revision 1.29 diff -u -d -r1.29 -r1.30 --- gstcdxaparse.c 6 May 2006 00:15:59 -0000 1.29 +++ gstcdxaparse.c 22 Jun 2007 10:46:31 -0000 1.30 @@ -92,8 +92,7 @@ GstCaps *caps; cdxaparse->sinkpad = gst_pad_set_activate_function (cdxaparse->sinkpad, GST_DEBUG_FUNCPTR (gst_cdxa_parse_sink_activate)); gst_pad_set_activatepull_function (cdxaparse->sinkpad, @@ -102,8 +101,7 @@ gst_element_add_pad (GST_ELEMENT (cdxaparse), cdxaparse->sinkpad); cdxaparse->srcpad = - (&src_template_factory), "src"); + gst_pad_new_from_static_template (&src_template_factory, "src"); gst_pad_set_event_function (cdxaparse->srcpad, GST_DEBUG_FUNCPTR (gst_cdxa_parse_src_event)); Index: gstcdxastrip.c RCS file: /cvs/gstreamer/gst-plugins-bad/gst/cdxaparse/gstcdxastrip.c,v --- gstcdxastrip.c 25 Apr 2006 21:56:32 -0000 1.6 +++ gstcdxastrip.c 22 Jun 2007 10:46:31 -0000 1.7 @@ -116,14 +116,12 @@ GST_OBJECT_FLAG_SET (cdxastrip, GST_ELEMENT_EVENT_AWARE); cdxastrip->sinkpad = gst_pad_set_chain_function (cdxastrip->sinkpad, gst_cdxastrip_chain); gst_element_add_pad (GST_ELEMENT (cdxastrip), cdxastrip->sinkpad); cdxastrip->srcpad = gst_pad_set_formats_function (cdxastrip->srcpad, gst_cdxastrip_get_src_formats); gst_pad_set_event_mask_function (cdxastrip->srcpad, RCS file: /cvs/gstreamer/gst-plugins-bad/gst/colorspace/gstcolorspace.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- gstcolorspace.c 25 Apr 2006 21:56:32 -0000 1.17 +++ gstcolorspace.c 22 Jun 2007 10:46:31 -0000 1.18 @@ -516,16 +516,14 @@ } Index: gstfestival.c RCS file: /cvs/gstreamer/gst-plugins-bad/gst/festival/gstfestival.c,v retrieving revision 1.25 diff -u -d -r1.25 -r1.26 --- gstfestival.c 25 Apr 2006 21:56:32 -0000 1.25 +++ gstfestival.c 22 Jun 2007 10:46:31 -0000 1.26 @@ -186,14 +186,12 @@ gst_festival_init (GstFestival * festival) festival->sinkpad = gst_pad_set_chain_function (festival->sinkpad, gst_festival_chain); gst_element_add_pad (GST_ELEMENT (festival), festival->sinkpad); festival->srcpad = gst_element_add_pad (GST_ELEMENT (festival), festival->srcpad); festival->info = festival_default_info (); Index: gstfreeze.c RCS file: /cvs/gstreamer/gst-plugins-bad/gst/freeze/gstfreeze.c,v --- gstfreeze.c 23 Jun 2006 09:09:44 -0000 1.8 +++ gstfreeze.c 22 Jun 2007 10:46:31 -0000 1.9 @@ -111,8 +111,7 @@ gst_freeze_init (GstFreeze * freeze, GstFreezeClass * klass) freeze->sinkpad = - (&gst_freeze_sink_template), "sink"); + gst_pad_new_from_static_template (&gst_freeze_sink_template, "sink"); gst_element_add_pad (GST_ELEMENT (freeze), freeze->sinkpad); gst_pad_set_activate_function (freeze->sinkpad, gst_freeze_sink_activate); gst_pad_set_activatepull_function (freeze->sinkpad, @@ -121,8 +120,8 @@ gst_pad_set_getcaps_function (freeze->sinkpad, gst_pad_proxy_getcaps); gst_pad_set_event_function (freeze->sinkpad, gst_freeze_sink_event); - freeze->srcpad = gst_pad_new_from_template (gst_static_pad_template_get - (&gst_freeze_src_template), "src"); + freeze->srcpad = + gst_pad_new_from_static_template (&gst_freeze_src_template, "src"); gst_element_add_pad (GST_ELEMENT (freeze), freeze->srcpad); gst_pad_set_getcaps_function (freeze->srcpad, gst_pad_proxy_getcaps); Index: mixmatrix.c RCS file: /cvs/gstreamer/gst-plugins-bad/gst/mixmatrix/mixmatrix.c,v diff -u -d -r1.31 -r1.32 --- mixmatrix.c 16 Sep 2006 22:14:36 -0000 1.31 +++ mixmatrix.c 22 Jun 2007 10:46:31 -0000 1.32 @@ -381,9 +381,7 @@ mixmatrix_resize (mix, ROUND_UP (padnum, mix->grpsize), mix->sinkpadalloc); - pad = - gst_pad_new_from_template (gst_static_pad_template_get - (&mixmatrix_sink_template), name); + pad = gst_pad_new_from_static_template (&mixmatrix_sink_template, name); GST_PAD_ELEMENT_PRIVATE (pad) = GINT_TO_POINTER (padnum); gst_element_add_pad (GST_ELEMENT (mix), pad); /* g_signal_connect(G_OBJECT(pad), "unlink", G_CALLBACK(sink_unlinked), mix); */ @@ -405,9 +403,7 @@ if (padnum >= mix->srcpadalloc) mixmatrix_resize (mix, ROUND_UP (padnum, mix->grpsize), mix->srcpadalloc); - (&mixmatrix_src_template), name); + pad = gst_pad_new_from_static_template (&mixmatrix_src_template, name); Index: gstmpeg1systemencode.c RCS file: /cvs/gstreamer/gst-plugins-bad/gst/mpeg1sys/gstmpeg1systemencode.c,v --- gstmpeg1systemencode.c 25 Apr 2006 21:56:33 -0000 1.30 +++ gstmpeg1systemencode.c 22 Jun 2007 10:46:31 -0000 1.31 @@ -149,8 +149,7 @@ gst_system_encode_init (GstMPEG1SystemEncode * system_encode) system_encode->srcpad = + gst_pad_new_from_static_template (&src_factory, "src"); gst_element_add_pad (GST_ELEMENT (system_encode), system_encode->srcpad); system_encode->video_buffer = mpeg1mux_buffer_new (BUFFER_TYPE_VIDEO, 0xE0); Index: gstmpeg2subt.c RCS file: /cvs/gstreamer/gst-plugins-bad/gst/mpeg2sub/gstmpeg2subt.c,v --- gstmpeg2subt.c 25 Apr 2006 21:56:33 -0000 1.32 +++ gstmpeg2subt.c 22 Jun 2007 10:46:31 -0000 1.33 @@ -205,8 +205,7 @@ gst_mpeg2subt_init (GstMpeg2Subt * mpeg2subt) mpeg2subt->videopad = - (&video_template), "video"); + gst_pad_new_from_static_template (&video_template, "video"); gst_element_add_pad (GST_ELEMENT (mpeg2subt), mpeg2subt->videopad); gst_pad_set_link_function (mpeg2subt->videopad, GST_DEBUG_FUNCPTR (gst_mpeg2subt_link_video)); @@ -214,13 +213,10 @@ GST_DEBUG_FUNCPTR (gst_mpeg2subt_getcaps_video)); mpeg2subt->subtitlepad = - (&subtitle_template), "subtitle"); + gst_pad_new_from_static_template (&subtitle_template, "subtitle"); gst_element_add_pad (GST_ELEMENT (mpeg2subt), mpeg2subt->subtitlepad); - mpeg2subt->srcpad = - (&src_template), "src"); + mpeg2subt->srcpad = gst_pad_new_from_static_template (&src_template, "src"); gst_element_add_pad (GST_ELEMENT (mpeg2subt), mpeg2subt->srcpad); gst_pad_set_getcaps_function (mpeg2subt->srcpad, Index: gstnsf.c RCS file: /cvs/gstreamer/gst-plugins-bad/gst/nsf/gstnsf.c,v --- gstnsf.c 31 Jan 2007 08:16:59 -0000 1.2 +++ gstnsf.c 22 Jun 2007 10:46:31 -0000 1.3 @@ -180,17 +180,13 @@ gst_nsfdec_init (GstNsfDec * nsfdec) - nsfdec->sinkpad = - gst_pad_new_from_template (gst_static_pad_template_get (&sink_templ), + nsfdec->sinkpad = gst_pad_new_from_static_template (&sink_templ, "sink"); gst_pad_set_query_function (nsfdec->sinkpad, NULL); gst_pad_set_event_function (nsfdec->sinkpad, gst_nsfdec_sink_event); gst_pad_set_chain_function (nsfdec->sinkpad, gst_nsfdec_chain); gst_element_add_pad (GST_ELEMENT (nsfdec), nsfdec->sinkpad); - nsfdec->srcpad = - gst_pad_new_from_template (gst_static_pad_template_get (&src_templ), + nsfdec->srcpad = gst_pad_new_from_static_template (&src_templ, "src"); gst_pad_set_event_function (nsfdec->srcpad, gst_nsfdec_src_event); gst_pad_set_query_function (nsfdec->srcpad, gst_nsfdec_src_query); gst_pad_use_fixed_caps (nsfdec->srcpad); Index: gstoverlay.c RCS file: /cvs/gstreamer/gst-plugins-bad/gst/overlay/gstoverlay.c,v diff -u -d -r1.16 -r1.17 --- gstoverlay.c 25 Apr 2006 21:56:33 -0000 1.16 +++ gstoverlay.c 22 Jun 2007 10:46:32 -0000 1.17 @@ -195,26 +195,22 @@ gst_overlay_init (GstOverlay * overlay) overlay->sinkpad1 = - (&overlay_sink1_factory), "sink1"); + gst_pad_new_from_static_template (&overlay_sink1_factory, "sink1"); gst_pad_set_link_function (overlay->sinkpad1, gst_overlay_sinkconnect); gst_element_add_pad (GST_ELEMENT (overlay), overlay->sinkpad1); overlay->sinkpad2 = - (&overlay_sink2_factory), "sink2"); + gst_pad_new_from_static_template (&overlay_sink2_factory, "sink2"); gst_pad_set_link_function (overlay->sinkpad2, gst_overlay_sinkconnect); gst_element_add_pad (GST_ELEMENT (overlay), overlay->sinkpad2); overlay->sinkpad3 = - (&overlay_sink3_factory), "sink3"); + gst_pad_new_from_static_template (&overlay_sink3_factory, "sink3"); gst_pad_set_link_function (overlay->sinkpad3, gst_overlay_sinkconnect); gst_element_add_pad (GST_ELEMENT (overlay), overlay->sinkpad3); overlay->srcpad = - (&overlay_src_factory), "src"); + gst_pad_new_from_static_template (&overlay_src_factory, "src"); gst_element_add_pad (GST_ELEMENT (overlay), overlay->srcpad); gst_element_set_loop_function (GST_ELEMENT (overlay), gst_overlay_loop); Index: gstpassthrough.c RCS file: /cvs/gstreamer/gst-plugins-bad/gst/passthrough/gstpassthrough.c,v --- gstpassthrough.c 25 Apr 2006 21:56:33 -0000 1.27 +++ gstpassthrough.c 22 Jun 2007 10:46:32 -0000 1.28 @@ -193,12 +193,10 @@ passthrough_init (GstPassthrough * filter) filter->srcpad = - (&passthrough_src_template), "src"); + gst_pad_new_from_static_template (&passthrough_src_template, "src"); gst_element_add_pad (GST_ELEMENT (filter), filter->srcpad); filter->sinkpad = - (&passthrough_sink_template), "sink"); + gst_pad_new_from_static_template (&passthrough_sink_template, "sink"); gst_element_add_pad (GST_ELEMENT (filter), filter->sinkpad); gst_pad_set_link_function (filter->sinkpad, passthrough_connect_sink); Index: gstplayondemand.c RCS file: /cvs/gstreamer/gst-plugins-bad/gst/playondemand/gstplayondemand.c,v --- gstplayondemand.c 25 Apr 2006 21:56:33 -0000 1.32 +++ gstplayondemand.c 22 Jun 2007 10:46:32 -0000 1.33 @@ -236,11 +236,9 @@ play_on_demand_init (GstPlayOnDemand * filter) - (&play_on_demand_src_template), "src"); + gst_pad_new_from_static_template (&play_on_demand_src_template, "src"); - (&play_on_demand_sink_template), "sink"); + gst_pad_new_from_static_template (&play_on_demand_sink_template, "sink"); gst_pad_set_link_function (filter->sinkpad, play_on_demand_pad_link); Index: gstsmooth.c RCS file: /cvs/gstreamer/gst-plugins-bad/gst/smooth/gstsmooth.c,v --- gstsmooth.c 25 Apr 2006 21:56:35 -0000 1.27 +++ gstsmooth.c 22 Jun 2007 10:46:32 -0000 1.28 @@ -160,15 +160,13 @@ gst_smooth_init (GstSmooth * smooth) smooth->sinkpad = - (&gst_smooth_sink_template), "sink"); + gst_pad_new_from_static_template (&gst_smooth_sink_template, "sink"); gst_pad_set_link_function (smooth->sinkpad, gst_smooth_link); gst_pad_set_chain_function (smooth->sinkpad, gst_smooth_chain); gst_element_add_pad (GST_ELEMENT (smooth), smooth->sinkpad); smooth->srcpad = - (&gst_smooth_sink_template), "src"); + gst_pad_new_from_static_template (&gst_smooth_sink_template, "src"); gst_pad_set_link_function (smooth->srcpad, gst_smooth_link); gst_element_add_pad (GST_ELEMENT (smooth), smooth->srcpad); Index: gstsmoothwave.c RCS file: /cvs/gstreamer/gst-plugins-bad/gst/smoothwave/gstsmoothwave.c,v --- gstsmoothwave.c 25 Apr 2006 21:56:35 -0000 1.23 +++ gstsmoothwave.c 22 Jun 2007 10:46:32 -0000 1.24 @@ -156,11 +156,8 @@ int i; smoothwave->sinkpad = - smoothwave->srcpad = + smoothwave->srcpad = gst_pad_new_from_static_template (&src_template, "src"); gst_element_add_pad (GST_ELEMENT (smoothwave), smoothwave->sinkpad); gst_pad_set_chain_function (smoothwave->sinkpad, gst_smoothwave_chain); gst_pad_set_link_function (smoothwave->sinkpad, gst_sw_sinklink); Index: gstspeed.c RCS file: /cvs/gstreamer/gst-plugins-bad/gst/speed/gstspeed.c,v --- gstspeed.c 4 May 2007 17:20:31 -0000 1.46 +++ gstspeed.c 22 Jun 2007 10:46:32 -0000 1.47 @@ -490,16 +490,14 @@ speed_init (GstSpeed * filter) - (&gst_speed_sink_template), "sink"); + gst_pad_new_from_static_template (&gst_speed_sink_template, "sink"); gst_pad_set_setcaps_function (filter->sinkpad, speed_setcaps); gst_pad_set_chain_function (filter->sinkpad, speed_chain); gst_pad_set_event_function (filter->sinkpad, speed_sink_event); - (&gst_speed_src_template), "src"); + gst_pad_new_from_static_template (&gst_speed_src_template, "src"); gst_pad_set_setcaps_function (filter->srcpad, speed_setcaps); gst_pad_set_query_type_function (filter->srcpad, speed_get_query_types); gst_pad_set_query_function (filter->srcpad, speed_src_query); Index: gstvbidec.c RCS file: /cvs/gstreamer/gst-plugins-bad/gst/vbidec/gstvbidec.c,v --- gstvbidec.c 16 Sep 2006 22:14:36 -0000 1.16 +++ gstvbidec.c 22 Jun 2007 10:46:32 -0000 1.17 @@ -206,15 +206,13 @@ vbidec->sinkpad = - (&gst_vbidec_sink_template), "sink"); + gst_pad_new_from_static_template (&gst_vbidec_sink_template, "sink"); gst_element_add_pad (GST_ELEMENT (vbidec), vbidec->sinkpad); gst_pad_set_chain_function (vbidec->sinkpad, GST_DEBUG_FUNCPTR (gst_vbidec_chain)); vbidec->srcpad = - (&gst_vbidec_src_template), "src"); + gst_pad_new_from_static_template (&gst_vbidec_src_template, "src"); gst_element_add_pad (GST_ELEMENT (vbidec), vbidec->srcpad); vbidec->vbiscreen = vbiscreen_new (0, 0, 1.0, 0, (void *) vbidec); Index: gstvideodrop.c RCS file: /cvs/gstreamer/gst-plugins-bad/gst/videodrop/gstvideodrop.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- gstvideodrop.c 25 Apr 2006 21:56:37 -0000 1.19 +++ gstvideodrop.c 22 Jun 2007 10:46:32 -0000 1.20 @@ -232,16 +232,14 @@ GST_DEBUG ("gst_videodrop_init"); videodrop->sinkpad = - (&gst_videodrop_sink_template), "sink"); + gst_pad_new_from_static_template (&gst_videodrop_sink_template, "sink"); gst_element_add_pad (GST_ELEMENT (videodrop), videodrop->sinkpad); gst_pad_set_chain_function (videodrop->sinkpad, gst_videodrop_chain); gst_pad_set_getcaps_function (videodrop->sinkpad, gst_videodrop_getcaps); gst_pad_set_link_function (videodrop->sinkpad, gst_videodrop_link); videodrop->srcpad = - (&gst_videodrop_src_template), "src"); + gst_pad_new_from_static_template (&gst_videodrop_src_template, "src"); gst_element_add_pad (GST_ELEMENT (videodrop), videodrop->srcpad); gst_pad_set_getcaps_function (videodrop->srcpad, gst_videodrop_getcaps); gst_pad_set_link_function (videodrop->srcpad, gst_videodrop_link); Index: dxr3spusink.c RCS file: /cvs/gstreamer/gst-plugins-bad/sys/dxr3/dxr3spusink.c,v retrieving revision 1.22 diff -u -d -r1.22 -r1.23 --- dxr3spusink.c 8 Apr 2006 21:48:00 -0000 1.22 +++ dxr3spusink.c 22 Jun 2007 10:46:32 -0000 1.23 @@ -201,9 +201,7 @@ - (&dxr3spusink_sink_factory), "sink"); + pad = gst_pad_new_from_static_template (&dxr3spusink_sink_factory, "sink"); gst_element_add_pad (GST_ELEMENT (sink), pad); gst_pad_set_chain_function (pad, dxr3spusink_chain); Index: dxr3videosink.c RCS file: /cvs/gstreamer/gst-plugins-bad/sys/dxr3/dxr3videosink.c,v --- dxr3videosink.c 8 Apr 2006 21:48:00 -0000 1.22 +++ dxr3videosink.c 22 Jun 2007 10:46:33 -0000 1.23 @@ -198,9 +198,7 @@ - (&dxr3videosink_sink_factory), "sink"); + pad = gst_pad_new_from_static_template (&dxr3videosink_sink_factory, "sink"); gst_pad_set_chain_function (pad, dxr3videosink_chain); Index: gstqcamsrc.c RCS file: /cvs/gstreamer/gst-plugins-bad/sys/qcam/gstqcamsrc.c,v --- gstqcamsrc.c 25 Apr 2006 21:56:38 -0000 1.25 +++ gstqcamsrc.c 22 Jun 2007 10:46:33 -0000 1.26 @@ -213,8 +213,7 @@ gst_qcamsrc_init (GstQCamSrc * qcamsrc) qcamsrc->srcpad = - (&gst_qcamsrc_src_factory), "src"); + gst_pad_new_from_static_template (&gst_qcamsrc_src_factory, "src"); gst_element_add_pad (GST_ELEMENT (qcamsrc), qcamsrc->srcpad); gst_pad_set_get_function (qcamsrc->srcpad, gst_qcamsrc_get); |