wasapi2: Pass correct data flow value to GetDefaultAudioEndpoint()
Respect requested data flow value Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9521>
This commit is contained in:
parent
a052257c03
commit
e0146536ab
@ -651,7 +651,7 @@ get_default_device (GstWasapi2Enumerator * self, EDataFlow flow,
|
||||
*actual_device_id = nullptr;
|
||||
*actual_device_name = nullptr;
|
||||
|
||||
auto hr = priv->handle->GetDefaultAudioEndpoint (eCapture,
|
||||
auto hr = priv->handle->GetDefaultAudioEndpoint (flow,
|
||||
eConsole, &rst_device);
|
||||
if (FAILED (hr))
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user