Mercurial > audlegacy-plugins
diff src/flacng/tools.c @ 1041:7d7f77129c75 trunk
[svn]
- Do not complain about errors in the stream while testing a file
author | ertzing |
---|---|
date | Wed, 16 May 2007 13:00:14 -0700 |
parents | 1b0890d5c00b |
children | b1128efde471 |
line wrap: on
line diff
--- a/src/flacng/tools.c Wed May 16 04:10:36 2007 -0700 +++ b/src/flacng/tools.c Wed May 16 13:00:14 2007 -0700 @@ -94,6 +94,7 @@ info->buffer_used = 0; info->write_pointer = info->output_buffer; info->read_max = -1; + info->testing = FALSE; /* * Clear the stream and frame information @@ -278,6 +279,12 @@ info->read_max = 8192; /* + * We are not sure if this is an actual flac file, so do not + * complain too much about errors in the stream + */ + info->testing = TRUE; + + /* * Open the file */ if (NULL == (info->input_stream = vfs_fopen(filename, "rb"))) { @@ -300,6 +307,7 @@ */ info->read_max = -1; + info->testing = FALSE; _LEAVE TRUE; }