asfmux: write preroll info in the header at initialization

This value doesn't need to be updated and is usefull in a streaming context

Fixes #618522
This commit is contained in:
Andoni Morales Alastruey 2010-04-29 10:46:49 +02:00 committed by Thiago Santos
parent 0039494227
commit 2a94798136

View 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 */