Commit c3f638a6 authored by Francois Cartegnie's avatar Francois Cartegnie

mux: ogg: flag blocks as HEADERS for backup. (fix #10612)

Skeleton handling does early write of some headers,
and then skipped flagging them.
parent c875b9ea
...@@ -1119,6 +1119,11 @@ static bool OggCreateHeaders( sout_mux_t *p_mux ) ...@@ -1119,6 +1119,11 @@ static bool OggCreateHeaders( sout_mux_t *p_mux )
} }
/* Write previous headers */ /* Write previous headers */
for( p_og = p_hdr; p_og != NULL; p_og = p_og->p_next )
{
/* flag headers to be resent for streaming clients */
p_og->i_flags |= BLOCK_FLAG_HEADER;
}
p_mux->p_sys->i_pos += sout_AccessOutWrite( p_mux->p_access, p_hdr ); p_mux->p_sys->i_pos += sout_AccessOutWrite( p_mux->p_access, p_hdr );
p_hdr = NULL; p_hdr = NULL;
...@@ -1272,6 +1277,7 @@ static bool OggCreateHeaders( sout_mux_t *p_mux ) ...@@ -1272,6 +1277,7 @@ static bool OggCreateHeaders( sout_mux_t *p_mux )
} }
/* set HEADER flag */ /* set HEADER flag */
/* flag headers to be resent for streaming clients */
for( p_og = p_hdr; p_og != NULL; p_og = p_og->p_next ) for( p_og = p_hdr; p_og != NULL; p_og = p_og->p_next )
{ {
p_og->i_flags |= BLOCK_FLAG_HEADER; p_og->i_flags |= BLOCK_FLAG_HEADER;
......
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