summaryrefslogtreecommitdiff
path: root/plugins/mpgmad/mpgmad.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mpgmad/mpgmad.c')
-rw-r--r--plugins/mpgmad/mpgmad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mpgmad/mpgmad.c b/plugins/mpgmad/mpgmad.c
index 4f88af02..4354d3c8 100644
--- a/plugins/mpgmad/mpgmad.c
+++ b/plugins/mpgmad/mpgmad.c
@@ -1179,7 +1179,7 @@ cmp3_read (DB_fileinfo_t *_info, char *bytes, int size) {
#endif
int samplesize = _info->fmt.channels * _info->fmt.bps / 8;
mpgmad_info_t *info = (mpgmad_info_t *)_info;
- if (info->buffer.duration >= 0) {
+ if (info->buffer.duration >= 0 && !info->buffer.file->vfs->is_streaming ()) {
int curr = info->buffer.currentsample;
//printf ("curr: %d -> end %d, padding: %d\n", curr, info->buffer.endsample, info->buffer.padding);
if (size / samplesize + curr > info->buffer.endsample) {