Evas filters: Fix usage of proxy buffers (compatibility)
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 25 Jun 2015 05:43:05 +0000 (14:43 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 25 Jun 2015 05:43:05 +0000 (14:43 +0900)
The previous API supported stuff like "mask{'image1'}" but image1
is now not a valid buffer name, as it's only the proxy source name.
This patch fixes the buffer lookup.

src/lib/evas/filters/evas_filter_parser.c

index 7c4082c..d6d1e35 100644 (file)
@@ -602,8 +602,12 @@ _buffer_get(Evas_Filter_Program *pgm, const char *name)
    EINA_SAFETY_ON_NULL_RETURN_VAL(name, NULL);
 
    EINA_INLIST_FOREACH(pgm->buffers, buf)
-     if (!strcmp(buf->name, name))
-       return buf;
+     {
+        if (!strcmp(buf->name, name))
+          return buf;
+        else if (buf->proxy && !strcmp(buf->proxy, name))
+          return buf;
+     }
 
    return NULL;
 }