mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
alpha: Don't use start() vmethod
The only thing we're doing is initializing parameters ... * which won't work because we don't have upstream/downstream caps * which will be initialized when ::set_caps() is called
This commit is contained in:
parent
632588b3d9
commit
919dcf405d
1 changed files with 0 additions and 14 deletions
|
@ -156,7 +156,6 @@ GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE ("{ AYUV, ARGB, BGRA, ABGR, RGBA }"));
|
|||
g_static_mutex_unlock (&alpha->lock); \
|
||||
} G_STMT_END
|
||||
|
||||
static gboolean gst_alpha_start (GstBaseTransform * trans);
|
||||
static gboolean gst_alpha_get_unit_size (GstBaseTransform * btrans,
|
||||
GstCaps * caps, gsize * size);
|
||||
static GstCaps *gst_alpha_transform_caps (GstBaseTransform * btrans,
|
||||
|
@ -270,7 +269,6 @@ gst_alpha_class_init (GstAlphaClass * klass)
|
|||
gst_element_class_add_pad_template (gstelement_class,
|
||||
gst_static_pad_template_get (&gst_alpha_src_template));
|
||||
|
||||
btrans_class->start = GST_DEBUG_FUNCPTR (gst_alpha_start);
|
||||
btrans_class->transform = GST_DEBUG_FUNCPTR (gst_alpha_transform);
|
||||
btrans_class->before_transform =
|
||||
GST_DEBUG_FUNCPTR (gst_alpha_before_transform);
|
||||
|
@ -2562,18 +2560,6 @@ gst_alpha_set_process_function (GstAlpha * alpha)
|
|||
return alpha->process != NULL;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gst_alpha_start (GstBaseTransform * btrans)
|
||||
{
|
||||
GstAlpha *alpha = GST_ALPHA (btrans);
|
||||
|
||||
GST_ALPHA_LOCK (alpha);
|
||||
gst_alpha_init_params (alpha);
|
||||
GST_ALPHA_UNLOCK (alpha);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static void
|
||||
gst_alpha_before_transform (GstBaseTransform * btrans, GstBuffer * buf)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue