Commit 609a5fe2 authored by Ilkka Ollakka's avatar Ilkka Ollakka

livehttp: gather blocks so we can write more at the time

Otherwise we would loop and write() ts-packet at a time.
parent 11ef9fc9
......@@ -944,7 +944,7 @@ static int CheckSegmentChange( sout_access_out_t *p_access, block_t *p_buffer )
static ssize_t writeSegment( sout_access_out_t *p_access )
{
sout_access_out_sys_t *p_sys = p_access->p_sys;
block_t *output = p_sys->block_buffer;
block_t *output = p_sys->block_buffer ? block_ChainGather( p_sys->block_buffer ) : NULL;
p_sys->block_buffer = NULL;
ssize_t i_write=0;
bool crypted = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment