summaryrefslogtreecommitdiff
path: root/test/run_decoder.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/run_decoder.cxx')
-rw-r--r--test/run_decoder.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/run_decoder.cxx b/test/run_decoder.cxx
index 1147e4faf..a7e275302 100644
--- a/test/run_decoder.cxx
+++ b/test/run_decoder.cxx
@@ -204,7 +204,12 @@ try {
}
MyDecoderClient client(c.seek_where);
- if (plugin->file_decode != nullptr) {
+ if (plugin->SupportsUri(c.uri)) {
+ try {
+ plugin->UriDecode(client, c.uri);
+ } catch (StopDecoder) {
+ }
+ } else if (plugin->file_decode != nullptr) {
try {
plugin->FileDecode(client, FromNarrowPath(c.uri));
} catch (StopDecoder) {