mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
add more detail to the seeking error output
This commit is contained in:
@@ -101,7 +101,7 @@ int decode_wav(const char *infile, const char *outfile, bool analysis_mode, anal
|
||||
goto wav_abort_;
|
||||
}
|
||||
if(!FLAC__file_decoder_seek_absolute(decoder, skip)) {
|
||||
fprintf(stderr, "%s: ERROR seeking while skipping bytes\n", infile);
|
||||
fprintf(stderr, "%s: ERROR seeking while skipping bytes, state=%d:%s\n", infile, decoder->state, FLAC__FileDecoderStateString[decoder->state]);
|
||||
goto wav_abort_;
|
||||
}
|
||||
if(!FLAC__file_decoder_process_remaining_frames(decoder)) {
|
||||
@@ -209,7 +209,7 @@ int decode_raw(const char *infile, const char *outfile, bool analysis_mode, anal
|
||||
goto raw_abort_;
|
||||
}
|
||||
if(!FLAC__file_decoder_seek_absolute(decoder, skip)) {
|
||||
fprintf(stderr, "%s: ERROR seeking while skipping bytes\n", infile);
|
||||
fprintf(stderr, "%s: ERROR seeking while skipping bytes, state=%d:%s\n", infile, decoder->state, FLAC__FileDecoderStateString[decoder->state]);
|
||||
goto raw_abort_;
|
||||
}
|
||||
if(!FLAC__file_decoder_process_remaining_frames(decoder)) {
|
||||
|
||||
Reference in New Issue
Block a user