summaryrefslogtreecommitdiff
path: root/ext/zbar
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-04-02 11:13:25 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2012-04-02 11:13:25 +0200
commitc649050eb419c2d51f5df5eb9694cd3787c2a9ab (patch)
tree3f7b272b97f1fed593fcb21fcd4165a927195fd9 /ext/zbar
parent53e264d63100687ae3bdbb8affa40d3d9bb63c12 (diff)
downloadgstreamer-plugins-bad-c649050eb419c2d51f5df5eb9694cd3787c2a9ab.tar.gz
use transform_ip_on_passthrough
Diffstat (limited to 'ext/zbar')
-rw-r--r--ext/zbar/gstzbar.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/zbar/gstzbar.c b/ext/zbar/gstzbar.c
index 8fd6854ee..c1ba30c3c 100644
--- a/ext/zbar/gstzbar.c
+++ b/ext/zbar/gstzbar.c
@@ -175,6 +175,7 @@ gst_zbar_class_init (GstZBarClass * g_class)
trans_class->start = GST_DEBUG_FUNCPTR (gst_zbar_start);
trans_class->stop = GST_DEBUG_FUNCPTR (gst_zbar_stop);
+ trans_class->transform_ip_on_passthrough = FALSE;
vfilter_class->transform_frame_ip =
GST_DEBUG_FUNCPTR (gst_zbar_transform_frame_ip);
@@ -253,9 +254,6 @@ gst_zbar_transform_frame_ip (GstVideoFilter * vfilter, GstVideoFrame * frame)
const zbar_symbol_t *symbol;
int n;
- if (gst_base_transform_is_passthrough (GST_BASE_TRANSFORM (vfilter)))
- goto done;
-
image = zbar_image_create ();
/* all formats we support start with an 8-bit Y plane. zbar doesn't need
@@ -305,7 +303,6 @@ out:
zbar_image_scanner_recycle_image (zbar->scanner, image);
zbar_image_destroy (image);
-done:
return GST_FLOW_OK;
}