make bytestream use the shiny new timestamp macros

Original commit message from CVS:
make bytestream use the shiny new timestamp macros
This commit is contained in:
Benjamin Otte 2003-04-15 18:52:07 +00:00
parent 4bf4de13ed
commit ef0f37e429

View file

@ -159,7 +159,6 @@ gst_bytestream_get_next_buf (GstByteStream *bs)
{ {
GstBuffer *nextbuf, *lastbuf, *headbuf; GstBuffer *nextbuf, *lastbuf, *headbuf;
GSList *end; GSList *end;
GstClockTime ts;
/* if there is an event pending, return FALSE */ /* if there is an event pending, return FALSE */
if (bs->event) if (bs->event)
@ -176,9 +175,8 @@ gst_bytestream_get_next_buf (GstByteStream *bs)
return FALSE; return FALSE;
} }
ts = GST_BUFFER_TIMESTAMP (nextbuf); if (GST_BUFFER_TIMESTAMP_IS_VALID (nextbuf))
if (ts != GST_CLOCK_TIME_NONE) bs->last_ts = GST_BUFFER_TIMESTAMP (nextbuf);
bs->last_ts = ts;
bs_print ("get_next_buf: got buffer of %d bytes", GST_BUFFER_SIZE (nextbuf)); bs_print ("get_next_buf: got buffer of %d bytes", GST_BUFFER_SIZE (nextbuf));