summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-06-25 14:43:05 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-06-25 14:43:05 +0900
commit8fa3b2b111b4e6435d83d331d40d4c27ffbee24f (patch)
treec9607f1f4089a4a7e189040cfe12315f5e99637e
parent04466193558ed23f4af3da4a5381aa75ea6e13e5 (diff)
Evas filters: Fix usage of proxy buffers (compatibility)
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.
-rw-r--r--src/lib/evas/filters/evas_filter_parser.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/evas/filters/evas_filter_parser.c b/src/lib/evas/filters/evas_filter_parser.c
index 7c4082c51d..d6d1e35fc6 100644
--- a/src/lib/evas/filters/evas_filter_parser.c
+++ b/src/lib/evas/filters/evas_filter_parser.c
@@ -602,8 +602,12 @@ _buffer_get(Evas_Filter_Program *pgm, const char *name)
602 EINA_SAFETY_ON_NULL_RETURN_VAL(name, NULL); 602 EINA_SAFETY_ON_NULL_RETURN_VAL(name, NULL);
603 603
604 EINA_INLIST_FOREACH(pgm->buffers, buf) 604 EINA_INLIST_FOREACH(pgm->buffers, buf)
605 if (!strcmp(buf->name, name)) 605 {
606 return buf; 606 if (!strcmp(buf->name, name))
607 return buf;
608 else if (buf->proxy && !strcmp(buf->proxy, name))
609 return buf;
610 }
607 611
608 return NULL; 612 return NULL;
609} 613}