Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: VDR developer version 1.1.6



Stefan Huelswitt wrote:
> 
> On 05 Aug 2002 Klaus Schmidinger <Klaus.Schmidinger@cadsoft.de> wrote:
> 
> >> The simplest solution would be to allow PlayVideo() to block. Is that
> >> acceptable? (IMHO it is not)
> >
> > See above. PlayVideo() doesn't have to return "immediately", but it must
> > be fast enough to allow the player to keep up with reading the data.
> 
> I think PlayVideo() should return nearly "immediately"
> (non-blocking) as the player task may need much more CPU
> power/time do process the read data (e.g. decode MP3,DIVX etc).
> If PlayVideo() would block, the player may need the old
> two-thread approach to keep up with the data rate.

Sure, that's what I mean, too. The question is just how much time the DXR3
processing takes. If it doesn't take too long, doing it directly in PlayVideo()
would probably be acceptable. If it takes too long, the cDXR3Device
would have to do it in a separate thread.

Klaus
-- 
_______________________________________________________________

Klaus Schmidinger                       Phone: +49-8635-6989-10
CadSoft Computer GmbH                   Fax:   +49-8635-6989-40
Hofmark 2                               Email:   kls@cadsoft.de
D-84568 Pleiskirchen, Germany           URL:     www.cadsoft.de
_______________________________________________________________




Home | Main Index | Thread Index