From c649050eb419c2d51f5df5eb9694cd3787c2a9ab Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 2 Apr 2012 11:13:25 +0200 Subject: [PATCH] use transform_ip_on_passthrough --- ext/zbar/gstzbar.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ext/zbar/gstzbar.c b/ext/zbar/gstzbar.c index 8fd6854..c1ba30c 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; } -- 2.7.4