Changeset 10 for trunk/src/streaminfo.c


Ignore:
Timestamp:
08/12/06 16:35:51 (18 years ago)
Author:
zorg
Message:

Update to 1.2.3 trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/streaminfo.c

    r7 r10  
    5757{
    5858    memset(si, 0, sizeof(mpc_streaminfo));
    59 }
    60 
    61 // read information from SV8 header
    62 // not yet implemented
    63 static mpc_int32_t
    64 streaminfo_read_header_sv8(mpc_streaminfo * si, mpc_reader * fp)
    65 {
    66     (void) si;
    67     (void) fp;
    68     return 0;
    6959}
    7060
     
    143133
    144134// read information from SV4-SV6 header
     135#ifdef MPC_SUPPORT_SV456
    145136static mpc_int32_t
    146137streaminfo_read_header_sv6(mpc_streaminfo * si, mpc_uint32_t HeaderData[8])
     
    199190    return ERROR_CODE_OK;
    200191}
    201 
     192#endif
    202193// reads file header and tags
    203194mpc_int32_t
     
    235226        // stream version 8
    236227        if ((si->stream_version & 15) >= 8) {
    237             Error = streaminfo_read_header_sv8(si, r);
     228            return ERROR_CODE_INVALIDSV;
    238229        }
    239230        // stream version 7
    240231        else if ((si->stream_version & 15) == 7) {
    241232            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
    245237        // stream version 4-6
    246238        Error = streaminfo_read_header_sv6(si, HeaderData);
     239#else
     240        return ERROR_CODE_INVALIDSV;
     241#endif
    247242    }
    248243
     
    259254    }
    260255
    261     return Error;
     256    return ERROR_CODE_OK;
    262257}
    263258
Note: See TracChangeset for help on using the changeset viewer.