Ticket #897: readframes_char.diff

File readframes_char.diff, 721 bytes (added by genki0, 18 years ago)

readframes

  • MediaTrack.cpp

     
    253253    return fCurTime;
    254254}
    255255
     256// BMediaTrack::ReadFrames(char *, long long *, media_header *)
     257// Compatibility for R5 and below. Required by Corum III and Civ:CTP.
     258#if __GNUC__ < 3
    256259
     260extern "C" status_t
     261ReadFrames__11BMediaTrackPcPxP12media_header(BMediaTrack *self,
     262                                            char *out_buffer,
     263                                            int64 *out_frameCount,
     264                                            media_header *mh)
     265{
     266    return self->ReadFrames(out_buffer, out_frameCount, mh, 0);
     267}
     268
     269#endif  // __GNUC__ < 3
     270
    257271status_t
    258272BMediaTrack::ReadFrames(void *out_buffer,
    259273                        int64 *out_frameCount,