diff options
author | Thiago Santos <thiagoss@embedded.ufcg.edu.br> | 2009-07-30 00:19:18 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@embedded.ufcg.edu.br> | 2009-07-30 10:33:05 -0300 |
commit | 7583bf6813501a071700522c8bb227afdb4471af (patch) | |
tree | ba6492b4cd3a207afe75fed967068a334932308d /gst/asfmux | |
parent | c271548aabb978eded82b18f5caf5e5966b8718c (diff) | |
download | gst-plugins-bad-7583bf6813501a071700522c8bb227afdb4471af.tar.gz gst-plugins-bad-7583bf6813501a071700522c8bb227afdb4471af.tar.bz2 gst-plugins-bad-7583bf6813501a071700522c8bb227afdb4471af.zip |
asfmux: Set video stream seekable property to true
Video stream always have indexes, so they are all seekable
Diffstat (limited to 'gst/asfmux')
-rw-r--r-- | gst/asfmux/gstasfmux.c | 8 |
1 files changed, 7 insertions, 1 deletions
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 */ |