Changeset 85 for libmpcdec/branches/zorg/src/mpc_reader.c
- Timestamp:
- 11/03/06 00:10:26 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpcdec/branches/zorg/src/mpc_reader.c
r81 r85 59 59 { 60 60 mpc_reader_stdio *p_stdio = (mpc_reader_stdio*) p_reader->data; 61 if(p_stdio->magic != STDIO_MAGIC) return FALSE;62 return p_stdio->is_seekable ? fseek(p_stdio->p_file, offset, SEEK_SET) == 0 : FALSE;61 if(p_stdio->magic != STDIO_MAGIC) return MPC_FALSE; 62 return p_stdio->is_seekable ? fseek(p_stdio->p_file, offset, SEEK_SET) == 0 : MPC_FALSE; 63 63 } 64 64 … … 83 83 { 84 84 mpc_reader_stdio *p_stdio = (mpc_reader_stdio*) p_reader->data; 85 if(p_stdio->magic != STDIO_MAGIC) return FALSE;85 if(p_stdio->magic != STDIO_MAGIC) return MPC_FALSE; 86 86 return p_stdio->is_seekable; 87 87 } … … 101 101 p_stdio->p_file = fopen(filename, "rb"); 102 102 if(!p_stdio->p_file) goto clean; 103 p_stdio->is_seekable = TRUE;103 p_stdio->is_seekable = MPC_TRUE; 104 104 err = fseek(p_stdio->p_file, 0, SEEK_END); 105 105 if(err < 0) goto clean;
Note: See TracChangeset
for help on using the changeset viewer.