diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2015-06-25 14:43:05 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2015-06-25 14:43:05 +0900 |
commit | 8fa3b2b111b4e6435d83d331d40d4c27ffbee24f (patch) | |
tree | c9607f1f4089a4a7e189040cfe12315f5e99637e | |
parent | 04466193558ed23f4af3da4a5381aa75ea6e13e5 (diff) | |
download | efl-8fa3b2b111b4e6435d83d331d40d4c27ffbee24f.tar.gz |
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.c | 8 |
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) 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; } |