mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
Update duration field
Original commit message from CVS: Update duration field
This commit is contained in:
parent
0aba7e35bb
commit
1c65404179
1 changed files with 5 additions and 1 deletions
|
@ -1670,10 +1670,14 @@ gst_avi_demux_loop (GstElement *element)
|
|||
guint32 got_bytes;
|
||||
|
||||
if (chunk.size) {
|
||||
GstClockTime dur_ts;
|
||||
got_bytes = gst_bytestream_peek (avi_demux->bs, &buf, chunk.size);
|
||||
|
||||
GST_BUFFER_TIMESTAMP (buf) = next_ts;
|
||||
|
||||
gst_pad_query (stream->pad, GST_QUERY_POSITION, &format, &dur_ts);
|
||||
GST_BUFFER_DURATION (buf) = dur_ts - next_ts;
|
||||
|
||||
if (stream->need_flush) {
|
||||
/* FIXME, do some flush event here */
|
||||
stream->need_flush = FALSE;
|
||||
|
|
Loading…
Reference in a new issue