asfmux: Set video stream seekable property to true

Video stream always have indexes, so they are all seekable
This commit is contained in:
Thiago Santos 2009-07-30 00:19:18 -03:00
parent c271548aab
commit 7583bf6813

View file

@ -846,7 +846,13 @@ gst_asf_mux_write_extended_stream_properties (GstAsfMux * asfmux, guint8 ** buf,
GST_WRITE_UINT32_LE (*buf + 64, 0); /* maximum object size */
/* flags */
GST_WRITE_UINT32_LE (*buf + 68, 0x0); /* TODO check if seekable */
if (asfpad->is_audio) {
/* TODO check if audio is seekable */
GST_WRITE_UINT32_LE (*buf + 68, 0x0);
} else {
/* video has indexes, so it is seekable */
GST_WRITE_UINT32_LE (*buf + 68, 0x2);
}
GST_WRITE_UINT16_LE (*buf + 72, asfpad->stream_number);
GST_WRITE_UINT16_LE (*buf + 74, 0); /* language index */