From: <thi...@ke...> - 2010-06-08 17:58:30
|
Module: gst-plugins-bad Branch: master Commit: 40209aa30fa1b88af1bed05291bf6ac87a5d64e3 URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=40209aa30fa1b88af1bed05291bf6ac87a5d64e3 Author: Andoni Morales Alastruey <amo...@fl...> Date: Thu May 13 12:15:27 2010 +0200 asfmux: don't set the 'seekable' flag if we are streaming Fixes #618522 --- gst/asfmux/gstasfmux.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gst/asfmux/gstasfmux.c b/gst/asfmux/gstasfmux.c index 37e4c83..963b621 100644 --- a/gst/asfmux/gstasfmux.c +++ b/gst/asfmux/gstasfmux.c @@ -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); |