wasapi2: Fix broken debug log

I hope that MSVC is smart enought to warn this at build time

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1459>
This commit is contained in:
Seungha Yang 2020-07-23 23:01:03 +09:00 committed by GStreamer Merge Bot
parent 87b150c42a
commit 8821165648

View file

@ -685,7 +685,8 @@ gst_wasapi2_client_thread_func_internal (GstWasapi2Client * self)
/* 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_WARNING_OBJECT (self, "Device index %d is unavailable",
self->device_index);
goto run_loop;
}