asfmux: Set video stream seekable property to true
authorThiago Santos <thiagoss@embedded.ufcg.edu.br>
Thu, 30 Jul 2009 03:19:18 +0000 (00:19 -0300)
committerThiago Santos <thiagoss@embedded.ufcg.edu.br>
Thu, 30 Jul 2009 13:33:05 +0000 (10:33 -0300)
Video stream always have indexes, so they are all seekable

gst/asfmux/gstasfmux.c

index edc4bb7..83f5270 100644 (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 */