asfmux: don't set the 'seekable' flag if we are streaming
authorAndoni Morales Alastruey <amorales@flumotion.com>
Thu, 13 May 2010 10:15:27 +0000 (12:15 +0200)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Tue, 8 Jun 2010 17:50:35 +0000 (14:50 -0300)
Fixes #618522

gst/asfmux/gstasfmux.c

index 37e4c83ad7cbf57d0c81d6dd0f4eb75a5361ad33..963b621234c15535fe80415b8c45971c31f567b7 100644 (file)
@@ -848,8 +848,11 @@ gst_asf_mux_write_extended_stream_properties (GstAsfMux * asfmux, guint8 ** buf,
     /* 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);
+    /* video has indexes, so it is seekable unless we are streaming */
+    if (asfmux->prop_is_live)
+      GST_WRITE_UINT32_LE (*buf + 68, 0x0);
+    else
+      GST_WRITE_UINT32_LE (*buf + 68, 0x2);
   }
 
   GST_WRITE_UINT16_LE (*buf + 72, asfpad->stream_number);