aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/read_tags.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/read_tags.c b/test/read_tags.c
index adeabb156..1e88005c2 100644
--- a/test/read_tags.c
+++ b/test/read_tags.c
@@ -169,6 +169,20 @@ int main(int argc, char **argv)
}
tag = decoder_plugin_tag_dup(plugin, path);
+ if (tag == NULL && plugin->stream_tag != NULL) {
+ struct input_stream is;
+
+ if (!input_stream_open(&is, path, &error)) {
+ g_printerr("Failed to open %s: %s\n",
+ path, error->message);
+ g_error_free(error);
+ return 1;
+ }
+
+ tag = decoder_plugin_stream_tag(plugin, &is);
+ input_stream_close(&is);
+ }
+
decoder_plugin_deinit_all();
input_stream_global_finish();
if (tag == NULL) {