aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/decoder/audiofile_plugin.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/decoder/audiofile_plugin.c b/src/decoder/audiofile_plugin.c
index 79a041b62..71c2cf0fa 100644
--- a/src/decoder/audiofile_plugin.c
+++ b/src/decoder/audiofile_plugin.c
@@ -113,6 +113,11 @@ audiofile_stream_decode(struct decoder *decoder, struct input_stream *is)
int ret, current = 0;
char chunk[CHUNK_SIZE];
+ if (!is->seekable) {
+ g_warning("not seekable");
+ return;
+ }
+
vf = setup_virtual_fops(is);
af_fp = afOpenVirtualFile(vf, "r", NULL);