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:
Seungha Yang 2025-08-09 22:46:59 +09:00 committed by GStreamer Marge Bot
parent a052257c03
commit e0146536ab

View File

@ -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;