]> git.sesse.net Git - vlc/commitdiff
mux: ogg: flag blocks as HEADERS for backup. (fix #10612)
authorFrancois Cartegnie <fcvlcdev@free.fr>
Sat, 8 Feb 2014 21:45:59 +0000 (22:45 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Sat, 8 Feb 2014 22:03:44 +0000 (23:03 +0100)
Skeleton handling does early write of some headers,
and then skipped flagging them.

modules/mux/ogg.c

index 0011ca04428b6a3afe3df96ad60bdc728327682c..f5f2eeadfb083428757b7ce7aeb1c034f273f221 100644 (file)
@@ -1119,6 +1119,11 @@ static bool OggCreateHeaders( sout_mux_t *p_mux )
     }
 
     /* 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_hdr = NULL;
 
@@ -1272,6 +1277,7 @@ static bool OggCreateHeaders( sout_mux_t *p_mux )
     }
 
     /* 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 )
     {
         p_og->i_flags |= BLOCK_FLAG_HEADER;