summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@embedded.ufcg.edu.br>2009-07-30 00:19:18 -0300
committerThiago Santos <thiagoss@embedded.ufcg.edu.br>2009-07-30 10:33:05 -0300
commit7583bf6813501a071700522c8bb227afdb4471af (patch)
treeba6492b4cd3a207afe75fed967068a334932308d
parentc271548aabb978eded82b18f5caf5e5966b8718c (diff)
asfmux: Set video stream seekable property to true
Video stream always have indexes, so they are all seekable
-rw-r--r--gst/asfmux/gstasfmux.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gst/asfmux/gstasfmux.c b/gst/asfmux/gstasfmux.c
index edc4bb718..83f527011 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 */