From 7583bf6813501a071700522c8bb227afdb4471af Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Thu, 30 Jul 2009 00:19:18 -0300 Subject: asfmux: Set video stream seekable property to true Video stream always have indexes, so they are all seekable --- gst/asfmux/gstasfmux.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gst/asfmux/gstasfmux.c b/gst/asfmux/gstasfmux.c index edc4bb71..83f52701 100644 --- a/gst/asfmux/gstasfmux.c +++ b/gst/asfmux/gstasfmux.c @@ -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 */ -- cgit v1.2.1