summaryrefslogtreecommitdiffstats
path: root/gst/librfb
diff options
context:
space:
mode:
authorArmando Taffarel Neto <taffarel@solis.coop.br>2007-11-15 08:28:29 +0000
committerThijs Vermeir <thijsvermeir@gmail.com>2007-11-15 08:28:29 +0000
commit88f5ef13bf5e8203b88b21fd2392b639a0161665 (patch)
tree2ce38e4ad7cebf8f277249b115aa3895cdd8f0c0 /gst/librfb
parent7ec3ec9dd9967cf5a1889f78b8c77c1ed5b56c8a (diff)
downloadgst-plugins-bad-88f5ef13bf5e8203b88b21fd2392b639a0161665.tar.gz
gst-plugins-bad-88f5ef13bf5e8203b88b21fd2392b639a0161665.tar.bz2
gst-plugins-bad-88f5ef13bf5e8203b88b21fd2392b639a0161665.zip
gst/librfb/gstrfbsrc.c: Set the timestamp for the output buffers
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
Diffstat (limited to 'gst/librfb')
-rw-r--r--gst/librfb/gstrfbsrc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/librfb/gstrfbsrc.c b/gst/librfb/gstrfbsrc.c
index 37757156..0f4af6c1 100644
--- a/gst/librfb/gstrfbsrc.c
+++ b/gst/librfb/gstrfbsrc.c
@@ -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;
}