diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2008-10-09 16:20:26 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2008-10-09 16:20:26 +0000 |
commit | 1f6ba1d28011929789612b51ddb888ca8353ceb7 (patch) | |
tree | 019b1f1d06f2b4cc0b096bd7f73f80b0a6123e2c /gst/flv/gstflvparse.h | |
parent | d411f8d1d7d5d5da9e1213ddc9387cba88768abb (diff) | |
download | gst-plugins-bad-1f6ba1d28011929789612b51ddb888ca8353ceb7.tar.gz gst-plugins-bad-1f6ba1d28011929789612b51ddb888ca8353ceb7.tar.bz2 gst-plugins-bad-1f6ba1d28011929789612b51ddb888ca8353ceb7.zip |
gst/flv/: Get an approximate duration of the file by looking at the timestamp of the last tag in pull mode. If we get...
Original commit message from CVS:
* gst/flv/gstflvdemux.c: (gst_flv_demux_loop):
* gst/flv/gstflvparse.c: (gst_flv_parse_tag_timestamp):
* gst/flv/gstflvparse.h:
Get an approximate duration of the file by looking at the timestamp
of the last tag in pull mode. If we get (maybe better) duration from
metadata later we'll use that instead.
Diffstat (limited to 'gst/flv/gstflvparse.h')
-rw-r--r-- | gst/flv/gstflvparse.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/flv/gstflvparse.h b/gst/flv/gstflvparse.h index 7b9d498e..0dfeaa97 100644 --- a/gst/flv/gstflvparse.h +++ b/gst/flv/gstflvparse.h @@ -38,5 +38,7 @@ GstFlowReturn gst_flv_parse_tag_type (GstFLVDemux * demux, const guint8 * data, GstFlowReturn gst_flv_parse_header (GstFLVDemux * demux, const guint8 * data, size_t data_size); +GstClockTime gst_flv_parse_tag_timestamp (GstFLVDemux *demux, const guint8 *data, size_t data_size); + G_END_DECLS #endif /* __FLV_PARSE_H__ */ |