mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 17:05:52 +00:00
wasapi2: Allows process loopback capture on Windows 10
As per MS documentation[1], it requires Windows 10 Build 20348 but it seems to be supported by old versions too [1] https://learn.microsoft.com/en-us/windows/win32/api/audioclientactivationparams/ ns-audioclientactivationparams-audioclient_process_loopback_params Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2524 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4505>
This commit is contained in:
parent
3044b0992f
commit
c98ad6f249
1 changed files with 3 additions and 1 deletions
|
@ -526,8 +526,10 @@ gst_wasapi2_can_process_loopback (void)
|
||||||
* "Windows 11", since build number of "Windows 10 version 21H2" is
|
* "Windows 11", since build number of "Windows 10 version 21H2" is
|
||||||
* still 19044.XXX
|
* still 19044.XXX
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* But other software enables this for build number 19041 or higher... */
|
||||||
if (osverinfo.dwMajorVersion > 10 ||
|
if (osverinfo.dwMajorVersion > 10 ||
|
||||||
(osverinfo.dwMajorVersion == 10 && osverinfo.dwBuildNumber >= 20348))
|
(osverinfo.dwMajorVersion == 10 && osverinfo.dwBuildNumber >= 19041))
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue