Commit 52b11457 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.

(cherry picked from commit 609a5fe2b4cdd2cca8bdd99e917ddd4d377bc6e6)
Signed-off-by: default avatarIlkka Ollakka <ileoo@videolan.org>
parent b8ef86cc
......@@ -928,7 +928,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