[gegl] Do not create a sub-buffer in nop, but pass the original straight through.
- From: Øyvind Kolås <ok src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gegl] Do not create a sub-buffer in nop, but pass the original straight through.
- Date: Thu, 12 Nov 2009 02:54:55 +0000 (UTC)
commit 40a4dac1a4c8381d8e41cbecb0507ec8e9eb522a
Author: �yvind Kolås <pippin gimp org>
Date: Thu Nov 12 02:53:23 2009 +0000
Do not create a sub-buffer in nop, but pass the original straight through.
operations/core/nop.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/operations/core/nop.c b/operations/core/nop.c
index 12715ef..f5cf99b 100644
--- a/operations/core/nop.c
+++ b/operations/core/nop.c
@@ -33,10 +33,10 @@
static gboolean
-process (GeglOperation *operation,
- GeglOperationContext *context,
- const gchar *output_prop,
- const GeglRectangle *result)
+process (GeglOperation *operation,
+ GeglOperationContext *context,
+ const gchar *output_prop,
+ const GeglRectangle *result)
{
GeglBuffer *input;
@@ -46,14 +46,14 @@ process (GeglOperation *operation,
return FALSE;
}
- input = gegl_operation_context_get_source (context, "input");
+ input = gegl_operation_context_get_object (context, "input");
if (!input)
{
g_warning ("nop received NULL input");
return FALSE;
}
- gegl_operation_context_take_object (context, "output", G_OBJECT (input));
+ gegl_operation_context_take_object (context, "output", g_object_ref (G_OBJECT (input)));
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]