summaryrefslogtreecommitdiff
path: root/sys/winscreencap/gstgdiscreencapsrc.h
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-08-03 19:42:56 +0300
committerSebastian Dröge <sebastian@centricular.com>2015-08-03 19:42:56 +0300
commitd3dbb69c8ea317eacd3e23100b063381dbe206db (patch)
tree333dfc81551b1397c52990bada8cf2c130100f0b /sys/winscreencap/gstgdiscreencapsrc.h
parentbd30d516a89cc74d24bf1f5e1c11315b070d82c6 (diff)
downloadgstreamer-plugins-bad-d3dbb69c8ea317eacd3e23100b063381dbe206db.tar.gz
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.
Diffstat (limited to 'sys/winscreencap/gstgdiscreencapsrc.h')
-rw-r--r--sys/winscreencap/gstgdiscreencapsrc.h4
1 files changed, 3 insertions, 1 deletions
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;