gst/librfb/gstrfbsrc.c: Set the timestamp for the output buffers
authorArmando Taffarel Neto <taffarel@solis.coop.br>
Thu, 15 Nov 2007 08:28:29 +0000 (08:28 +0000)
committerThijs Vermeir <thijsvermeir@gmail.com>
Thu, 15 Nov 2007 08:28:29 +0000 (08:28 +0000)
Original commit message from CVS:
patch by: Armando Taffarel Neto <taffarel@solis.coop.br>
* gst/librfb/gstrfbsrc.c:
Set the timestamp for the output buffers

ChangeLog
gst/librfb/gstrfbsrc.c

index 227e8ac..033a736 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-11-15  Thijs Vermeir  <thijsvermeir@gmail.com>
+
+       patch by: Armando Taffarel Neto <taffarel@solis.coop.br>
+       * gst/librfb/gstrfbsrc.c:
+       Set the timestamp for the output buffers
+
 2007-11-14  Sebastian Dröge  <slomo@circular-chaos.org>
 
        * tests/check/elements/spectrum.c: (GST_START_TEST):
index 3775715..0f4af6c 100644 (file)
@@ -401,6 +401,9 @@ gst_rfb_src_create (GstPushSrc * psrc, GstBuffer ** outbuf)
 
   memcpy (GST_BUFFER_DATA (*outbuf), decoder->frame, newsize);
   GST_BUFFER_SIZE (*outbuf) = newsize;
+  GST_BUFFER_TIMESTAMP (*outbuf) =
+      gst_clock_get_time (GST_ELEMENT_CLOCK (src)) -
+      GST_ELEMENT_CAST (src)->base_time;
 
   return GST_FLOW_OK;
 }