[Mplayer-cvslog] CVS: main/libmpdemux stream_file.c,NONE,1.1 stream.c,1.53,1.54 stream.h,1.58,1.59

Arpi arpi at thot.banki.hu
Thu Apr 3 13:53:13 CEST 2003


Hi,

> Index: stream.h

>  typedef struct stream_st {
> +  // Read
> +  int (*fill_buffer)(struct stream_st *s, char* buffer, int max_len);
> +  // Write
> +  int (*write_buffer)(struct stream_st *s, char* buffer, int len);
> +  // Seek
> +  int (*seek)(struct stream_st *s,off_t pos);
> +  // Control
> +  // Will be later used to let streams like dvd and cdda report
> +  // their structure (ie tracks, chapters, etc)
> +  int (*control)(struct stream_st *s,int cmd,void* arg);
> +  // Close
> +  void (*close)(struct stream_st *s);
> +
>    int fd;   // file descriptor, see man open(2)
>    int type; // see STREAMTYPE_*
> +  int flags;
> +  int sector_size; // sector size (seek will be aligned on this size if non 0)
>    unsigned int buf_pos,buf_len;
>    off_t pos,start_pos,end_pos;

1000000000l!
you fscked up this struct by inserting 5 32-bit values so the off_t are no
longer aligned, now this struct depends on struct alignment rules varies
thanks to fsckin gtk.h and other messes


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-cvslog mailing list