From d3dbb69c8ea317eacd3e23100b063381dbe206db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 3 Aug 2015 19:42:56 +0300 Subject: winscreencap: Properly timestamp buffers with the current clock running time instead of doing magic Also implement framerate handling correctly by borrowing the code from ximagesrc. GstBaseSrc::get_times() can't be used for that, we have to implement proper waiting ourselves. --- sys/winscreencap/gstgdiscreencapsrc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/winscreencap/gstgdiscreencapsrc.h') diff --git a/sys/winscreencap/gstgdiscreencapsrc.h b/sys/winscreencap/gstgdiscreencapsrc.h index 492785bbb..085e53288 100644 --- a/sys/winscreencap/gstgdiscreencapsrc.h +++ b/sys/winscreencap/gstgdiscreencapsrc.h @@ -62,7 +62,9 @@ struct _GstGDIScreenCapSrc /* Runtime variables */ RECT screen_rect; RECT src_rect; - gint64 frames; + guint64 frame_number; + GstClockID clock_id; + BITMAPINFO info; BYTE *dibMem; HBITMAP hBitmap; -- cgit v1.2.1