asfmux: write preroll info in the header at initialization
authorAndoni Morales Alastruey <amorales@flumotion.com>
Thu, 29 Apr 2010 08:46:49 +0000 (10:46 +0200)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Tue, 8 Jun 2010 17:50:22 +0000 (14:50 -0300)
This value doesn't need to be updated and is usefull in a streaming context

Fixes #618522

gst/asfmux/gstasfmux.c

index cb070e7..37e4c83 100644 (file)
@@ -675,7 +675,7 @@ gst_asf_mux_write_file_properties (GstAsfMux * asfmux, guint8 ** buf)
   GST_WRITE_UINT64_LE (*buf + 56, 0);   /* data packets - needs update */
   GST_WRITE_UINT64_LE (*buf + 64, 0);   /* play duration - needs update */
   GST_WRITE_UINT64_LE (*buf + 72, 0);   /* send duration - needs update */
-  GST_WRITE_UINT64_LE (*buf + 80, 0);   /* preroll */
+  GST_WRITE_UINT64_LE (*buf + 80, asfmux->preroll);     /* preroll */
   GST_WRITE_UINT32_LE (*buf + 88, 0x1); /* flags - broadcast on */
   GST_WRITE_UINT32_LE (*buf + 92, asfmux->packet_size); /* minimum data packet size */
   GST_WRITE_UINT32_LE (*buf + 96, asfmux->packet_size); /* maximum data packet size */