From 88211656488b67b2e27e17c8534e76fcf85afbb5 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Thu, 23 Jul 2020 23:01:03 +0900 Subject: [PATCH] wasapi2: Fix broken debug log I hope that MSVC is smart enought to warn this at build time Part-of: --- sys/wasapi2/gstwasapi2client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/wasapi2/gstwasapi2client.cpp b/sys/wasapi2/gstwasapi2client.cpp index 8c48df0d48..07d634341c 100644 --- a/sys/wasapi2/gstwasapi2client.cpp +++ b/sys/wasapi2/gstwasapi2client.cpp @@ -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; }