Changeset 10 for trunk/src/streaminfo.c
- Timestamp:
- 08/12/06 16:35:51 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/streaminfo.c
r7 r10 57 57 { 58 58 memset(si, 0, sizeof(mpc_streaminfo)); 59 }60 61 // read information from SV8 header62 // not yet implemented63 static mpc_int32_t64 streaminfo_read_header_sv8(mpc_streaminfo * si, mpc_reader * fp)65 {66 (void) si;67 (void) fp;68 return 0;69 59 } 70 60 … … 143 133 144 134 // read information from SV4-SV6 header 135 #ifdef MPC_SUPPORT_SV456 145 136 static mpc_int32_t 146 137 streaminfo_read_header_sv6(mpc_streaminfo * si, mpc_uint32_t HeaderData[8]) … … 199 190 return ERROR_CODE_OK; 200 191 } 201 192 #endif 202 193 // reads file header and tags 203 194 mpc_int32_t … … 235 226 // stream version 8 236 227 if ((si->stream_version & 15) >= 8) { 237 Error = streaminfo_read_header_sv8(si, r);228 return ERROR_CODE_INVALIDSV; 238 229 } 239 230 // stream version 7 240 231 else if ((si->stream_version & 15) == 7) { 241 232 Error = streaminfo_read_header_sv7(si, HeaderData); 242 } 243 } 244 else { 233 if (Error != ERROR_CODE_OK) return Error; 234 } 235 } else { 236 #ifdef MPC_SUPPORT_SV456 245 237 // stream version 4-6 246 238 Error = streaminfo_read_header_sv6(si, HeaderData); 239 #else 240 return ERROR_CODE_INVALIDSV; 241 #endif 247 242 } 248 243 … … 259 254 } 260 255 261 return E rror;256 return ERROR_CODE_OK; 262 257 } 263 258
Note: See TracChangeset
for help on using the changeset viewer.