[gegl] gegl/operation: s/_context_get_source/_context_dup_object/



commit c31268034c0208f88206306093689208f52263bf
Author: Øyvind Kolås <pippin gimp org>
Date:   Tue Nov 21 19:57:23 2017 +0100

    gegl/operation: s/_context_get_source/_context_dup_object/

 gegl/operation/gegl-operation-composer.c        |    4 ++--
 gegl/operation/gegl-operation-composer3.c       |    6 +++---
 gegl/operation/gegl-operation-filter.c          |    2 +-
 gegl/operation/gegl-operation-point-composer.c  |    4 ++--
 gegl/operation/gegl-operation-point-composer3.c |    6 +++---
 gegl/operation/gegl-operation-sink.c            |    2 +-
 6 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/gegl/operation/gegl-operation-composer.c b/gegl/operation/gegl-operation-composer.c
index 82554b6..b67a745 100644
--- a/gegl/operation/gegl-operation-composer.c
+++ b/gegl/operation/gegl-operation-composer.c
@@ -149,8 +149,8 @@ gegl_operation_composer_process (GeglOperation        *operation,
       return FALSE;
     }
 
-  input = gegl_operation_context_get_source (context, "input");
-  aux   = gegl_operation_context_get_source (context, "aux");
+  input = (GeglBuffer*)gegl_operation_context_dup_object (context, "input");
+  aux   = (GeglBuffer*)gegl_operation_context_dup_object (context, "aux");
   output = gegl_operation_context_get_output_maybe_in_place (operation,
                                                              context,
                                                              input,
diff --git a/gegl/operation/gegl-operation-composer3.c b/gegl/operation/gegl-operation-composer3.c
index a612fea..5e660e7 100644
--- a/gegl/operation/gegl-operation-composer3.c
+++ b/gegl/operation/gegl-operation-composer3.c
@@ -168,14 +168,14 @@ gegl_operation_composer3_process (GeglOperation        *operation,
     return TRUE;
   }
 
-  input = gegl_operation_context_get_source (context, "input");
+  input  = (GeglBuffer*) gegl_operation_context_dup_object (context, "input");
   output = gegl_operation_context_get_output_maybe_in_place (operation,
                                                              context,
                                                              input,
                                                              result);
 
-  aux   = gegl_operation_context_get_source (context, "aux");
-  aux2  = gegl_operation_context_get_source (context, "aux2");
+  aux   = (GeglBuffer*)gegl_operation_context_dup_object (context, "aux");
+  aux2  = (GeglBuffer*)gegl_operation_context_dup_object (context, "aux2");
 
   /* A composer with a NULL aux, can still be valid, the
    * subclass has to handle it.
diff --git a/gegl/operation/gegl-operation-filter.c b/gegl/operation/gegl-operation-filter.c
index 34198d9..2d26610 100644
--- a/gegl/operation/gegl-operation-filter.c
+++ b/gegl/operation/gegl-operation-filter.c
@@ -159,7 +159,7 @@ gegl_operation_filter_process (GeglOperation        *operation,
       return FALSE;
     }
 
-  input  = gegl_operation_context_get_source (context, "input");
+  input  = (GeglBuffer*)gegl_operation_context_dup_object (context, "input");
   output = gegl_operation_context_get_output_maybe_in_place (operation,
                                                              context,
                                                              input,
diff --git a/gegl/operation/gegl-operation-point-composer.c b/gegl/operation/gegl-operation-point-composer.c
index 684468f..a830482 100644
--- a/gegl/operation/gegl-operation-point-composer.c
+++ b/gegl/operation/gegl-operation-point-composer.c
@@ -132,13 +132,13 @@ gegl_operation_composer_process (GeglOperation        *operation,
     return TRUE;
   }
 
-  input  = gegl_operation_context_get_source (context, "input");
+  input  = (GeglBuffer*) gegl_operation_context_dup_object (context, "input");
   output = gegl_operation_context_get_output_maybe_in_place (operation,
                                                              context,
                                                              input,
                                                              result);
 
-  aux   = gegl_operation_context_get_source (context, "aux");
+  aux   = (GeglBuffer*) gegl_operation_context_dup_object (context, "aux");
 
   /* A composer with a NULL aux, can still be valid, the
    * subclass has to handle it.
diff --git a/gegl/operation/gegl-operation-point-composer3.c b/gegl/operation/gegl-operation-point-composer3.c
index 4e202d3..dc37780 100644
--- a/gegl/operation/gegl-operation-point-composer3.c
+++ b/gegl/operation/gegl-operation-point-composer3.c
@@ -128,14 +128,14 @@ gegl_operation_composer3_process (GeglOperation        *operation,
     return TRUE;
   }
 
-  input  = gegl_operation_context_get_source (context, "input");
+  input  = (GeglBuffer*) gegl_operation_context_dup_object (context, "input");
   output = gegl_operation_context_get_output_maybe_in_place (operation,
                                                              context,
                                                              input,
                                                              result);
 
-  aux   = gegl_operation_context_get_source (context, "aux");
-  aux2  = gegl_operation_context_get_source (context, "aux2");
+  aux   = (GeglBuffer*) gegl_operation_context_dup_object (context, "aux");
+  aux2  = (GeglBuffer*) gegl_operation_context_dup_object (context, "aux2");
 
   /* A composer with a NULL aux, can still be valid, the
    * subclass has to handle it.
diff --git a/gegl/operation/gegl-operation-sink.c b/gegl/operation/gegl-operation-sink.c
index e4bb9c2..3d55280 100644
--- a/gegl/operation/gegl-operation-sink.c
+++ b/gegl/operation/gegl-operation-sink.c
@@ -90,7 +90,7 @@ gegl_operation_sink_process (GeglOperation        *operation,
 
   g_assert (klass->process);
 
-  input = gegl_operation_context_get_source (context, "input");
+  input = (GeglBuffer*) gegl_operation_context_dup_object (context, "input");
   if (input)
     {
       success = klass->process (operation, input, result, level);


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