[MPlayer-dev-eng] .TiVo file support (fwd)
Nico Sabbi
nicola_sabbi at fastwebnet.it
Sun Dec 17 13:49:32 CET 2006
Jeremy Drake wrote:
> On Sun, 17 Dec 2006, Nico Sabbi wrote:
>
>
>>today I've been busy with the output stream patch; tomorrow I'll look into
>>this seeking issue
>
>
> I created a function:
> int tivo_stream_seek(stream_t*s, off_t pos)
> {
> demuxer_t* demuxer = ((demux_stream_t*)s->priv)->demuxer;
> return stream_seek(demuxer->stream, pos);
> }
>
> And set s->seek = &tivo_stream_seek after new_ds_stream, and now I can
> seek (sort of, seeking backwards has some issues, don't know why). I
> noticed that new_ds_stream does not set a seek function, so I set one
> myself. I don't know that this is an acceptable fix, it seems hackish to
> me, but it helps. Hopefully this nugget will help you find the real fix.
>
seeking in piped demuxers is very tricky.
The attached patch works for me, but I don't really like it.
Anyone feel free to improve it ;)
--
"Without a frontend, mplayer is useless" - someone in mplayer-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ds_seek.diff
Type: text/x-patch
Size: 2137 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20061217/dfd463b1/attachment.bin>
More information about the MPlayer-dev-eng
mailing list