don't poke into basetransform internals

But use the methods
This commit is contained in:
Wim Taymans 2012-03-16 22:52:02 +01:00
parent 513d480fbf
commit 8f36d4c7a4
3 changed files with 5 additions and 5 deletions

View file

@ -103,7 +103,7 @@ gst_alpha_color_init (GstAlphaColor * alpha)
{
GstBaseTransform *btrans = GST_BASE_TRANSFORM (alpha);
btrans->always_in_place = TRUE;
gst_base_transform_set_in_place (btrans, TRUE);
}
static GstCaps *

View file

@ -196,10 +196,10 @@ gst_gamma_calculate_tables (GstGamma * gamma)
gdouble exp;
if (gamma->gamma == 1.0) {
GST_BASE_TRANSFORM (gamma)->passthrough = TRUE;
gst_base_transform_set_passthrough (GST_BASE_TRANSFORM (gamma), TRUE);
return;
}
GST_BASE_TRANSFORM (gamma)->passthrough = FALSE;
gst_base_transform_set_passthrough (GST_BASE_TRANSFORM (gamma), FALSE);
exp = 1.0 / gamma->gamma;
for (n = 0; n < 256; n++) {
@ -397,7 +397,7 @@ gst_gamma_transform_frame_ip (GstVideoFilter * vfilter, GstVideoFrame * frame)
if (!gamma->process)
goto not_negotiated;
if (GST_BASE_TRANSFORM (vfilter)->passthrough)
if (gst_base_transform_is_passthrough (GST_BASE_TRANSFORM (vfilter)))
goto done;
GST_OBJECT_LOCK (gamma);

View file

@ -159,7 +159,7 @@ gst_video_balance_update_properties (GstVideoBalance * videobalance)
gboolean passthrough = gst_video_balance_is_passthrough (videobalance);
GstBaseTransform *base = GST_BASE_TRANSFORM (videobalance);
base->passthrough = passthrough;
gst_base_transform_set_passthrough (base, passthrough);
if (!passthrough)
gst_video_balance_update_tables (videobalance);