[MPlayer-dev-eng] .TiVo file support (fwd)

Nico Sabbi nicola_sabbi at fastwebnet.it
Mon Dec 18 22:23:40 CET 2006


Jeremy Drake wrote:

> static int tivo_stream_seek(stream_t*s, off_t pos)
> {
> 	demux_stream_t* ds = s->priv;
> 	int retval;
> 	ds_free_packs (ds);
> 	mp_dbg(MSGT_DEMUX, MSGL_DBG3, "tivo_stream_seek to 0x%"PRIX64"\n",
> (int64_t)pos);
> 	/* XXX reset eof if the other guy did */
> 	ds->demuxer->stream->eof = s->eof;
> 	retval = stream_seek(ds->demuxer->stream,
> ((tivo_demux_priv*)ds->demuxer->priv)->begin_at + pos);
> 	s->pos = ds->dpos = stream_tell(ds->demuxer->stream) -
> ((tivo_demux_priv*)ds->demuxer->priv)->begin_at;
> 	/* XXX set other guy's eof if stream_seek set it */
> 	s->eof = ds->demuxer->stream->eof;
> 	return retval;
> }
> 
> 

both mine and your seek() patches are unacceptable.
We need a cleaner solution to this problem

-- 
"Without a frontend, mplayer is useless" - someone in mplayer-users



More information about the MPlayer-dev-eng mailing list