mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 09:59:54 +00:00
Remove unused SF_PRIVATE field end_of_file.
This commit is contained in:
parent
07ffec7ef9
commit
0777d4a596
@ -1,3 +1,11 @@
|
||||
2005-07-14 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
|
||||
|
||||
* src/flac.c
|
||||
Do not use psf->end_of_file because it never gets set to anything.
|
||||
|
||||
* src/common.h
|
||||
Remove unused SF_PRIVATE field end_of_file.
|
||||
|
||||
2005-07-12 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
|
||||
|
||||
* src/common.c
|
||||
|
@ -216,7 +216,6 @@ typedef struct sf_private_tag
|
||||
/* File descriptors for the file and (possibly) the resource fork. */
|
||||
int filedes, rsrcdes ;
|
||||
|
||||
int end_of_file ;
|
||||
int error ;
|
||||
|
||||
int mode ; /* Open mode : SFM_READ, SFM_WRITE or SFM_RDWR. */
|
||||
|
@ -331,7 +331,7 @@ FLAC__bool
|
||||
sf_flac_eof_callback (const FLAC__SeekableStreamDecoder *UNUSED (decoder), void *client_data)
|
||||
{ SF_PRIVATE *psf = (SF_PRIVATE*) client_data ;
|
||||
|
||||
if (psf->end_of_file)
|
||||
if (psf_ftell (psf) == psf->filelength)
|
||||
return SF_TRUE ;
|
||||
|
||||
return SF_FALSE ;
|
||||
|
Loading…
Reference in New Issue
Block a user