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