flvmux: Always put a duration tag in the metadata
authorJan Urbański <wulczer@wulczer.org>
Tue, 16 Mar 2010 00:29:36 +0000 (01:29 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 16 Mar 2010 14:12:46 +0000 (15:12 +0100)
commita99ee9617267004529d035ed7efc88659f6724d8
treed6e2df28d0353cdfac25606d2a6b58ae4bb90d55
parentef8f7614ff77ed9ce8979ebdbb96032ba768701d
flvmux: Always put a duration tag in the metadata

Some Flash players (for instance JW Player) always expect a duration
tag, otherwise they don't start playback.

If duration can be queried from the sink pads or is provided as a tag,
use it. Otherwise try to determine it from the last seen timestamp of
the sink pads after EOS and rewrite it in the header before writing
the index.
gst/flv/gstflvmux.c
gst/flv/gstflvmux.h