[gegl] operations/transform: s/_context_get_source/_context_dup_object/
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] operations/transform: s/_context_get_source/_context_dup_object/
- Date: Tue, 21 Nov 2017 20:42:29 +0000 (UTC)
commit 9bd432af273b1d3cfa956292dcdaa179d319c73f
Author: Øyvind Kolås <pippin gimp org>
Date: Tue Nov 21 19:58:41 2017 +0100
operations/transform: s/_context_get_source/_context_dup_object/
operations/transform/transform-core.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/operations/transform/transform-core.c b/operations/transform/transform-core.c
index 44abed7..690f9af 100644
--- a/operations/transform/transform-core.c
+++ b/operations/transform/transform-core.c
@@ -1147,7 +1147,7 @@ gegl_transform_process (GeglOperation *operation,
gegl_matrix3_is_identity (&matrix))
{
/* passing straight through (like gegl:nop) */
- input = gegl_operation_context_get_source (context, "input");
+ input = (GeglBuffer*)gegl_operation_context_dup_object (context, "input");
if (!input)
{
g_warning ("transform received NULL input");
@@ -1169,7 +1169,7 @@ gegl_transform_process (GeglOperation *operation,
* TODO: Should not be taken by non-interpolatory samplers (the
* current cubic, for example).
*/
- input = gegl_operation_context_get_source (context, "input");
+ input = (GeglBuffer*) gegl_operation_context_dup_object (context, "input");
output =
g_object_new (GEGL_TYPE_BUFFER,
"source", input,
@@ -1201,7 +1201,7 @@ gegl_transform_process (GeglOperation *operation,
/*
* For all other cases, do a proper resampling
*/
- input = gegl_operation_context_get_source (context, "input");
+ input = (GeglBuffer*) gegl_operation_context_dup_object (context, "input");
output = gegl_operation_context_get_target (context, "output");
/* flush opencl caches, to avoid racy flushing
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]