summaryrefslogtreecommitdiff
path: root/plugins/flac/flac.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/flac/flac.c')
-rw-r--r--plugins/flac/flac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/flac/flac.c b/plugins/flac/flac.c
index 43b1b1c0..c841a08f 100644
--- a/plugins/flac/flac.c
+++ b/plugins/flac/flac.c
@@ -246,8 +246,8 @@ cflac_init (DB_fileinfo_t *_info, DB_playItem_t *it) {
_info->plugin = &plugin;
_info->readpos = 0;
- if (_info->samplerate == -1) { // not a FLAC stream
- trace ("cflac_init not a flac stream\n");
+ if (_info->samplerate <= 0) { // not a FLAC stream
+ fprintf (stderr, "corrupted/invalid flac stream\n");
return -1;
}