[vlc-commits] mux: ogg: flag blocks as HEADERS for backup. (fix #10612)

Francois Cartegnie git at videolan.org
Sat Feb 8 23:04:14 CET 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Feb  8 22:45:59 2014 +0100| [c3f638a6dab79d88b1c51e2d1b77e115c3160c52] | committer: 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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c3f638a6dab79d88b1c51e2d1b77e115c3160c52
---

 modules/mux/ogg.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/mux/ogg.c b/modules/mux/ogg.c
index 0011ca0..f5f2eea 100644
--- a/modules/mux/ogg.c
+++ b/modules/mux/ogg.c
@@ -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;



More information about the vlc-commits mailing list