mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 21:21:12 +00:00
Cleanups + better timestamp capture
Original commit message from CVS: Cleanups + better timestamp capture
This commit is contained in:
parent
e20cb9265c
commit
c6daa24e8b
2 changed files with 12 additions and 9 deletions
|
@ -136,6 +136,7 @@ gst_bytestream_get_next_buf (GstByteStream *bs)
|
|||
{
|
||||
GstBuffer *nextbuf, *lastbuf, *headbuf;
|
||||
GSList *end;
|
||||
GstClockTime ts;
|
||||
|
||||
/* if there is an event pending, return FALSE */
|
||||
if (bs->event)
|
||||
|
@ -152,7 +153,9 @@ gst_bytestream_get_next_buf (GstByteStream *bs)
|
|||
if (!nextbuf)
|
||||
return FALSE;
|
||||
|
||||
bs->last_ts = GST_BUFFER_TIMESTAMP (nextbuf);
|
||||
ts = GST_BUFFER_TIMESTAMP (nextbuf);
|
||||
if (ts != GST_CLOCK_TIME_NONE)
|
||||
bs->last_ts = ts;
|
||||
|
||||
bs_print ("get_next_buf: got buffer of %d bytes", GST_BUFFER_SIZE (nextbuf));
|
||||
|
||||
|
|
Loading…
Reference in a new issue