From ef0f37e4293d867de6b95fe8e0bc37e3086b9859 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 15 Apr 2003 18:52:07 +0000 Subject: [PATCH] make bytestream use the shiny new timestamp macros Original commit message from CVS: make bytestream use the shiny new timestamp macros --- libs/gst/bytestream/bytestream.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libs/gst/bytestream/bytestream.c b/libs/gst/bytestream/bytestream.c index 76d02812ec..b1b547b9a2 100644 --- a/libs/gst/bytestream/bytestream.c +++ b/libs/gst/bytestream/bytestream.c @@ -159,7 +159,6 @@ 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) @@ -176,9 +175,8 @@ gst_bytestream_get_next_buf (GstByteStream *bs) return FALSE; } - ts = GST_BUFFER_TIMESTAMP (nextbuf); - if (ts != GST_CLOCK_TIME_NONE) - bs->last_ts = ts; + if (GST_BUFFER_TIMESTAMP_IS_VALID (nextbuf)) + bs->last_ts = GST_BUFFER_TIMESTAMP (nextbuf); bs_print ("get_next_buf: got buffer of %d bytes", GST_BUFFER_SIZE (nextbuf));