projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c271548
)
asfmux: Set video stream seekable property to true
author
Thiago Santos
<thiagoss@embedded.ufcg.edu.br>
Thu, 30 Jul 2009 03:19:18 +0000
(
00:19
-0300)
committer
Thiago 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
patch
|
blob
|
history
diff --git
a/gst/asfmux/gstasfmux.c
b/gst/asfmux/gstasfmux.c
index
edc4bb7
..
83f5270
100644
(file)
--- 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 */