[MPlayer-dev-eng] Re: [PATCH] Seek in http-streams
Valentine Zaretsky
valik+mplayerdev at email.dp.ua
Mon Feb 23 22:27:08 CET 2004
Hi!
Attila Kinali wrote:
>On Mon, 23 Feb 2004 12:21:59 -0500
>D Richard Felker III <dalias at aerifal.cx> wrote:
>
>
>
>>It's probably non-interleaved. In which case there's no way to play
>>the file from stdin without 600 megs of cache.
>>
>>
>
>It's not and i made sure it played with mplayer before
>the seeking patch was applied.
>
>
>
Just checked. Playing from stdin works in FreeBSD 4.9 and 5-C but only
with -cache option!!!
without -cache it doesn't start to play until eof (sorry I didn't check
it without -cache yesterday)
I have no linux at home and can't check how it works there (maybe in
linux it wouldn't work at all)
Eviv is right, all this odd behaviour is related to strange setting of
STREAM_SEEK_FW flag and seek_forward callback for stdin, which is not
normally seekable indeed in any direction!
2Albeu: Maybe we have to change these very strange lines in
libmpdemux/stream_file.c ?
lines 108-118:
len=lseek(f,0,SEEK_END); lseek(f,0,SEEK_SET);
if(len == -1) {
stream->seek = seek_forward;
stream->type = STREAMTYPE_STREAM; // Must be move to STREAMTYPE_FILE
stream->flags |= STREAM_SEEK_FW;
} else if(len >= 0) {
stream->seek = seek;
stream->end_pos = len;
stream->type = STREAMTYPE_FILE;
}
> Attila Kinali
>
>
--
Best regards, Valentine
More information about the MPlayer-dev-eng
mailing list