Commit 8f36d4c7 authored by Wim Taymans's avatar Wim Taymans
Browse files

don't poke into basetransform internals

But use the methods
parent 513d480f
...@@ -103,7 +103,7 @@ gst_alpha_color_init (GstAlphaColor * alpha) ...@@ -103,7 +103,7 @@ gst_alpha_color_init (GstAlphaColor * alpha)
{ {
GstBaseTransform *btrans = GST_BASE_TRANSFORM (alpha); GstBaseTransform *btrans = GST_BASE_TRANSFORM (alpha);
btrans->always_in_place = TRUE; gst_base_transform_set_in_place (btrans, TRUE);
} }
static GstCaps * static GstCaps *
......
...@@ -196,10 +196,10 @@ gst_gamma_calculate_tables (GstGamma * gamma) ...@@ -196,10 +196,10 @@ gst_gamma_calculate_tables (GstGamma * gamma)
gdouble exp; gdouble exp;
if (gamma->gamma == 1.0) { if (gamma->gamma == 1.0) {
GST_BASE_TRANSFORM (gamma)->passthrough = TRUE; gst_base_transform_set_passthrough (GST_BASE_TRANSFORM (gamma), TRUE);
return; return;
} }
GST_BASE_TRANSFORM (gamma)->passthrough = FALSE; gst_base_transform_set_passthrough (GST_BASE_TRANSFORM (gamma), FALSE);
exp = 1.0 / gamma->gamma; exp = 1.0 / gamma->gamma;
for (n = 0; n < 256; n++) { for (n = 0; n < 256; n++) {
...@@ -397,7 +397,7 @@ gst_gamma_transform_frame_ip (GstVideoFilter * vfilter, GstVideoFrame * frame) ...@@ -397,7 +397,7 @@ gst_gamma_transform_frame_ip (GstVideoFilter * vfilter, GstVideoFrame * frame)
if (!gamma->process) if (!gamma->process)
goto not_negotiated; goto not_negotiated;
if (GST_BASE_TRANSFORM (vfilter)->passthrough) if (gst_base_transform_is_passthrough (GST_BASE_TRANSFORM (vfilter)))
goto done; goto done;
GST_OBJECT_LOCK (gamma); GST_OBJECT_LOCK (gamma);
......
...@@ -159,7 +159,7 @@ gst_video_balance_update_properties (GstVideoBalance * videobalance) ...@@ -159,7 +159,7 @@ gst_video_balance_update_properties (GstVideoBalance * videobalance)
gboolean passthrough = gst_video_balance_is_passthrough (videobalance); gboolean passthrough = gst_video_balance_is_passthrough (videobalance);
GstBaseTransform *base = GST_BASE_TRANSFORM (videobalance); GstBaseTransform *base = GST_BASE_TRANSFORM (videobalance);
base->passthrough = passthrough; gst_base_transform_set_passthrough (base, passthrough);
if (!passthrough) if (!passthrough)
gst_video_balance_update_tables (videobalance); gst_video_balance_update_tables (videobalance);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment