Improved recording time acuracy

This commit is contained in:
Bruno
2021-08-07 01:02:39 +02:00
parent fb3e1d0d25
commit 2f0e4e3212
2 changed files with 21 additions and 17 deletions

View File

@@ -62,10 +62,13 @@ protected:
GstElement *pipeline_;
GstAppSrc *src_;
GstCaps *caps_;
GstClockTime timeframe_;
GstClockTime timestamp_;
GstClockTime frame_duration_;
GstClockTime timer_firstframe_;
GstClock *timer_;
// gstreamer callbacks
static void callback_need_data (GstAppSrc *, guint, gpointer user_data);
static void callback_enough_data (GstAppSrc *, gpointer user_data);