[gegl/soc-2013-opecl-ops] Fix segfault caused for lack of input format in box-min and box-max



commit e536a66e6cf64ce5a8d5d9a99c1acc70a1756881
Author: Carlos Zubieta <czubieta dev gmail com>
Date:   Wed Sep 11 06:55:25 2013 -0500

    Fix segfault caused for lack of input format in box-min and box-max

 operations/workshop/box-max.c |    1 +
 operations/workshop/box-min.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/operations/workshop/box-max.c b/operations/workshop/box-max.c
index ae52837..a821199 100644
--- a/operations/workshop/box-max.c
+++ b/operations/workshop/box-max.c
@@ -160,6 +160,7 @@ static void prepare (GeglOperation *operation)
   area->top   =
   area->bottom = GEGL_CHANT_PROPERTIES (operation)->radius;
   gegl_operation_set_format (operation, "output", babl_format ("RGBA float"));
+  gegl_operation_set_format (operation, "input", babl_format ("RGBA float"));
 }
 
 #include "opencl/gegl-cl.h"
diff --git a/operations/workshop/box-min.c b/operations/workshop/box-min.c
index 10d50b2..abf2060 100644
--- a/operations/workshop/box-min.c
+++ b/operations/workshop/box-min.c
@@ -160,6 +160,7 @@ static void prepare (GeglOperation *operation)
   area->top   =
   area->bottom = GEGL_CHANT_PROPERTIES (operation)->radius;
   gegl_operation_set_format (operation, "output", babl_format ("RGBA float"));
+  gegl_operation_set_format (operation, "input", babl_format ("RGBA float"));
 }
 
 #include "opencl/gegl-cl.h"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]