Changeset 439


Ignore:
Timestamp:
03/17/09 16:59:09 (16 years ago)
Author:
grimmel
Message:

More fixes from DEATH

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/trunk/libmpcdec/mpc_demux.c

    r436 r439  
    198198        size |= tmp[3];
    199199
    200         if ( footerPresent )
    201                 size += 10;
    202 
    203         mpc_demux_fill(d, size, 0);
    204         d->bits_reader.buff += size;
    205 
    206         return size + 10;
     200        size += 10; //header
     201
     202        if ( footerPresent ) size += 10;
     203
     204        // This is called before file headers get read, streamversion etc isn't yet known, demuxing isn't properly initialized and we can't call mpc_demux_seek() from here.
     205        mpc_demux_clear_buff(d);
     206        if (!d->r->seek(d->r, size)) return MPC_STATUS_FILE;
     207
     208        return size;
    207209}
    208210
Note: See TracChangeset for help on using the changeset viewer.