wasapi2: Adjust log level in device enumeration path

Audio device at requested index might not be available, but that's
expected case when enumerating devices.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6996>
This commit is contained in:
Seungha Yang 2024-06-05 22:09:56 +09:00 committed by GStreamer Marge Bot
parent 248556d823
commit 00536ea232

View file

@ -888,14 +888,14 @@ gst_wasapi2_client_activate_async (GstWasapi2Client * self,
return;
if (count == 0) {
GST_WARNING_OBJECT (self, "No available device");
GST_INFO_OBJECT (self, "No available device");
return;
}
/* device_index 0 will be assigned for default device
* so the number of available device is count + 1 (for default device) */
if (self->device_index >= 0 && self->device_index > (gint) count) {
GST_WARNING_OBJECT (self, "Device index %d is unavailable",
GST_INFO_OBJECT (self, "Device index %d is unavailable",
self->device_index);
return;
}