Mailing List archive

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

[vdr] Re: WaitForPut/WaitForGet (was VDR developer version 1.1.31)



Klaus Schmidinger wrote:
> 
> Stefan Huelswitt wrote:
> >
> > ...
> > > Of course I could put these things back into cRingBuffer, but VDR itself
> > > wouldn't be using them any more, and any plugin that implements a cReceiver
> > > also shouldn't do so. If there are other applications that _really_ need
> > > WaitForPut/WaitForGet please let me know.
> >
> > I understand that you cannot keep the WaitForPut/Get inside
> > Put/Get, but it would be nice to keep the wait functions and the
> > EnableGet/Put calls inside Get/Put so one could use them
> > optionaly.
> 
> Ok, I'll put it back in. However, to avoid cluttering the interfaces
> I'll just add a member function
> 
>   cRingBuffer::SetTimeouts(int PutTimeout, int GetTimeout)
> 
> that can be called to set the timeouts for Put() and Get(), respectively
> (which are 0 by default).
> 
> Would that be ok?

Please try ftp://ftp.cadsoft.de/vdr/Developer/vdr-1.1.31-ringbuffer-wait.diff
which re-implements the WaitForPut/WaitForGet stuff and adds the mentioned
SetTimeouts() function. If a plugin wants the buffer to wait it can call, e.g.,

  myBuffer->SetTimeouts(1000, 10);

to get the old bahaviour back.

The patch is untested because right now my VDR is recording...

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
_______________________________________________________________


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index