feat(linux): pace capture at exact fractional NTSC framerates (#5282)
This commit is contained in:
committed by
GitHub
parent
9cb358952c
commit
bba6c6cac0
@@ -873,7 +873,7 @@ namespace platf {
|
||||
* @return 0 on success; nonzero or negative platform status on failure.
|
||||
*/
|
||||
int init(const std::string &display_name, const ::video::config_t &config) {
|
||||
delay = std::chrono::nanoseconds {1s} / config.framerate;
|
||||
delay = ::video::capture_frame_interval(config);
|
||||
|
||||
int monitor_index = util::from_view(display_name);
|
||||
int monitor = 0;
|
||||
|
||||
Reference in New Issue
Block a user