[gegl] operations/core: s/_context_get_source/_context_dup_object/
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] operations/core: s/_context_get_source/_context_dup_object/
- Date: Tue, 21 Nov 2017 20:42:13 +0000 (UTC)
commit 7b28973d87643c256fcb42f5d9ce262f4e46dbdd
Author: Øyvind Kolås <pippin gimp org>
Date: Tue Nov 21 19:57:36 2017 +0100
operations/core: s/_context_get_source/_context_dup_object/
operations/core/cast-format.c | 2 +-
operations/core/clone.c | 2 +-
operations/core/convert-format.c | 2 +-
operations/core/crop.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/operations/core/cast-format.c b/operations/core/cast-format.c
index d47e877..c144f15 100644
--- a/operations/core/cast-format.c
+++ b/operations/core/cast-format.c
@@ -77,7 +77,7 @@ process (GeglOperation *operation,
return FALSE;
}
- input = gegl_operation_context_get_source (context, "input");
+ input = (GeglBuffer*) gegl_operation_context_dup_object (context, "input");
if (! input)
{
g_warning ("cast: received NULL input");
diff --git a/operations/core/clone.c b/operations/core/clone.c
index 9961fb2..c663ca6 100644
--- a/operations/core/clone.c
+++ b/operations/core/clone.c
@@ -82,7 +82,7 @@ process (GeglOperation *operation,
return FALSE;
}
- input = gegl_operation_context_get_source (context, "input");
+ input = (GeglBuffer*)gegl_operation_context_dup_object (context, "input");
if (!input)
{
g_warning ("clone received NULL input");
diff --git a/operations/core/convert-format.c b/operations/core/convert-format.c
index 31b0c3a..b36fa34 100644
--- a/operations/core/convert-format.c
+++ b/operations/core/convert-format.c
@@ -57,7 +57,7 @@ process (GeglOperation *operation,
GeglBuffer *input;
GeglBuffer *output;
- input = gegl_operation_context_get_source (context, "input");
+ input = (GeglBuffer*) gegl_operation_context_dup_object (context, "input");
if (gegl_buffer_get_format (input) != o->format)
{
diff --git a/operations/core/crop.c b/operations/core/crop.c
index 488a004..fd0a568 100644
--- a/operations/core/crop.c
+++ b/operations/core/crop.c
@@ -151,7 +151,7 @@ gegl_crop_process (GeglOperation *operation,
GeglBuffer *input;
gboolean success = FALSE;
- input = gegl_operation_context_get_source (context, "input");
+ input = (GeglBuffer*) gegl_operation_context_dup_object (context, "input");
if (input)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]