Fixed not counting the start of the line after the wrap, as it can be
clearly seen on this string:
"X yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy zzzzzzzzzzzzzzz"
where should be every ' ' replaced by '\n' but the second wasn't.
Try to install the DShow module with elevated privileges (doesn't work
with normal on most Windows instances, perhaps given by settings).
If the elevated registration succeeds, do not unregister that (otherwise
next time user would need to confirm that again).
Use system-registered screen-capture-recorder if available.
THe current way (if screen-capture-recorder is not installed) relies on
pushing a DLL into system but in current W10 (21H2) version, this is
prohibited to a normal user.
moved audio initialization after printing summary and printing
capabilities:
- messages from audio don't interleaved with the UG summary
- when printing capabilities, it is not needed to start audio (which
would do nothing)
Forces decoded audio format.
Mainly for testing but can be used also in case of problems (some format
doesn't work correctly although device claims to support that).
The replacement was recently (since 6dfd098d) used even despite the
built-in has been implemented. The replacement was there because it
has supposedly better precision than the built-in. But since it is
no longer true (if it ever was), it is removed.
Note: there is also timespec_get (or UG wrapper get_time_in_ns) that can
be used in recent code instead of POSIX gettimeofday.
struct timeval definition is needed for the original functions
regardless timespec_get is present or not
On the other hand, do not include it with files compiled by MSVC
(prominently AJA).
Those messages have nearly no information value (RTP session ID) or are
redundant (display/vidcap name; perhaps only to notice initialization
success). May be perhaps removed in future.
Return a macro ((void *) 1) from modules returning pointer to signalize
that help was printed (for correct UG return value). This replaces the
old behavior when module class specific value (eg. &display_init_noerr)
was returned.