UpdateContainer: pass suffix instead of DecoderPlugin

Instead of using the first DecoderPlugin that supports the suffix, use
the first one that actually implements the "container_scan" method.
This commit is contained in:
Max Kellermann
2013-12-29 16:46:02 +01:00
parent 9be82891b0
commit 5bb563e3bc
3 changed files with 18 additions and 6 deletions

View File

@@ -31,6 +31,6 @@ bool
update_container_file(Directory &directory,
const char *name,
const struct stat *st,
const DecoderPlugin &plugin);
const char *suffix);
#endif