mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
collectpads: port API changes
This commit is contained in:
parent
6d92ecac75
commit
d2f2955f18
7 changed files with 11 additions and 10 deletions
|
@ -2279,7 +2279,7 @@ gst_asf_mux_request_new_pad (GstElement * element,
|
|||
collect_size = sizeof (GstAsfVideoPad);
|
||||
}
|
||||
collect_pad = (GstAsfPad *)
|
||||
gst_collect_pads_add_pad_full (asfmux->collect, newpad, collect_size,
|
||||
gst_collect_pads_add_pad (asfmux->collect, newpad, collect_size,
|
||||
(GstCollectDataDestroyNotify) (gst_asf_mux_pad_reset));
|
||||
|
||||
/* set up pad */
|
||||
|
|
|
@ -203,9 +203,9 @@ gst_compare_init (GstCompare * comp, GstCompareClass * klass)
|
|||
gst_pad_set_getcaps_function (comp->checkpad, gst_compare_getcaps);
|
||||
gst_element_add_pad (GST_ELEMENT (comp), comp->checkpad);
|
||||
|
||||
gst_collect_pads_add_pad_full (comp->cpads, comp->sinkpad,
|
||||
gst_collect_pads_add_pad (comp->cpads, comp->sinkpad,
|
||||
sizeof (GstCollectData), NULL);
|
||||
gst_collect_pads_add_pad_full (comp->cpads, comp->checkpad,
|
||||
gst_collect_pads_add_pad (comp->cpads, comp->checkpad,
|
||||
sizeof (GstCollectData), NULL);
|
||||
|
||||
comp->srcpad = gst_pad_new_from_static_template (&src_factory, "src");
|
||||
|
|
|
@ -731,7 +731,7 @@ gst_frei0r_mixer_init (GstFrei0rMixer * self, GstFrei0rMixerClass * klass)
|
|||
gst_pad_set_query_function (self->sink0,
|
||||
GST_DEBUG_FUNCPTR (gst_frei0r_mixer_sink_query));
|
||||
gst_collect_pads_add_pad (self->collect, self->sink0,
|
||||
sizeof (GstCollectData));
|
||||
sizeof (GstCollectData), NULL);
|
||||
self->collect_event = (GstPadEventFunction) GST_PAD_EVENTFUNC (self->sink0);
|
||||
gst_pad_set_event_function (self->sink0,
|
||||
GST_DEBUG_FUNCPTR (gst_frei0r_mixer_sink0_event));
|
||||
|
@ -747,7 +747,7 @@ gst_frei0r_mixer_init (GstFrei0rMixer * self, GstFrei0rMixerClass * klass)
|
|||
gst_pad_set_query_function (self->sink0,
|
||||
GST_DEBUG_FUNCPTR (gst_frei0r_mixer_sink_query));
|
||||
gst_collect_pads_add_pad (self->collect, self->sink1,
|
||||
sizeof (GstCollectData));
|
||||
sizeof (GstCollectData), NULL);
|
||||
gst_element_add_pad (GST_ELEMENT_CAST (self), self->sink1);
|
||||
|
||||
if (klass->info->plugin_type == F0R_PLUGIN_TYPE_MIXER3) {
|
||||
|
@ -761,7 +761,7 @@ gst_frei0r_mixer_init (GstFrei0rMixer * self, GstFrei0rMixerClass * klass)
|
|||
gst_pad_set_query_function (self->sink0,
|
||||
GST_DEBUG_FUNCPTR (gst_frei0r_mixer_sink_query));
|
||||
gst_collect_pads_add_pad (self->collect, self->sink2,
|
||||
sizeof (GstCollectData));
|
||||
sizeof (GstCollectData), NULL);
|
||||
gst_element_add_pad (GST_ELEMENT_CAST (self), self->sink2);
|
||||
}
|
||||
|
||||
|
|
|
@ -539,7 +539,7 @@ mpegpsmux_request_new_pad (GstElement * element,
|
|||
pad = gst_pad_new_from_template (templ, name);
|
||||
|
||||
pad_data = (MpegPsPadData *) gst_collect_pads_add_pad (mux->collect, pad,
|
||||
sizeof (MpegPsPadData));
|
||||
sizeof (MpegPsPadData), NULL);
|
||||
if (pad_data == NULL)
|
||||
goto pad_failure;
|
||||
|
||||
|
|
|
@ -761,7 +761,7 @@ mpegtsmux_request_new_pad (GstElement * element,
|
|||
g_free (pad_name);
|
||||
|
||||
pad_data = (MpegTsPadData *) gst_collect_pads_add_pad (mux->collect, pad,
|
||||
sizeof (MpegTsPadData));
|
||||
sizeof (MpegTsPadData), NULL);
|
||||
if (pad_data == NULL)
|
||||
goto pad_failure;
|
||||
|
||||
|
|
|
@ -420,7 +420,7 @@ gst_mxf_mux_request_new_pad (GstElement * element,
|
|||
pad = gst_pad_new_from_template (templ, name);
|
||||
g_free (name);
|
||||
cpad = (GstMXFMuxPad *)
|
||||
gst_collect_pads_add_pad (mux->collect, pad, sizeof (GstMXFMuxPad));
|
||||
gst_collect_pads_add_pad (mux->collect, pad, sizeof (GstMXFMuxPad), NULL);
|
||||
cpad->last_timestamp = 0;
|
||||
cpad->adapter = gst_adapter_new ();
|
||||
cpad->writer = writer;
|
||||
|
|
|
@ -1158,7 +1158,8 @@ gst_ssim_request_new_pad (GstElement * element, GstPadTemplate * templ,
|
|||
gst_pad_set_getcaps_function (newpad,
|
||||
GST_DEBUG_FUNCPTR (gst_ssim_sink_getcaps));
|
||||
gst_pad_set_setcaps_function (newpad, GST_DEBUG_FUNCPTR (gst_ssim_setcaps));
|
||||
gst_collect_pads_add_pad (ssim->collect, newpad, sizeof (GstCollectData));
|
||||
gst_collect_pads_add_pad (ssim->collect, newpad, sizeof (GstCollectData),
|
||||
NULL);
|
||||
|
||||
/* FIXME: hacked way to override/extend the event function of
|
||||
* GstCollectPads; because it sets its own event function giving the
|
||||
|
|
Loading…
Reference in a new issue