mirror of
https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git
synced 2023-10-10 19:16:51 +02:00
High load when client isn't accepting data fast enough. Bug report and
fix by Olli Lammi (#382).
This commit is contained in:
parent
c8bf0474f9
commit
17ff4d32e8
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: streamer.c,v 1.15 2007/04/02 10:32:34 schmirl Exp $
|
||||
* $Id: streamer.c,v 1.16 2007/09/21 11:45:53 schmirl Exp $
|
||||
*/
|
||||
|
||||
#include <vdr/ringbuffer.h>
|
||||
@ -141,6 +141,8 @@ void cStreamdevStreamer::Action(void)
|
||||
int count = Put(block, got);
|
||||
if (count)
|
||||
m_RingBuffer->Del(count);
|
||||
else
|
||||
cCondWait::SleepMs(100);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user