record-daemon: fix build and features on windows
Some checks failed
record-daemon / Build, check and test (push) Failing after 56s
Some checks failed
record-daemon / Build, check and test (push) Failing after 56s
This commit is contained in:
@@ -805,11 +805,9 @@ impl LqpClient {
|
||||
info!("[ITEMS] Found localPlayer in game stats");
|
||||
if let Some(ref items) = local_player.items {
|
||||
info!("[ITEMS] localPlayer.items array has {} items", items.len());
|
||||
// Convert item IDs to serde_json::Value for parsing
|
||||
let items_json: Vec<serde_json::Value> = items
|
||||
.iter()
|
||||
.map(|id| serde_json::json!({"itemID": id}))
|
||||
.collect();
|
||||
// Convert item IDs to serde_json::Value for parsing (as raw numbers)
|
||||
let items_json: Vec<serde_json::Value> =
|
||||
items.iter().map(|id| serde_json::json!(*id)).collect();
|
||||
let item_build = parse_items_from_game_stats(&items_json);
|
||||
if item_build.is_some() {
|
||||
info!("[ITEMS] Successfully parsed items from localPlayer");
|
||||
@@ -831,10 +829,8 @@ impl LqpClient {
|
||||
"[ITEMS] Player items array has {} items",
|
||||
items.len()
|
||||
);
|
||||
let items_json: Vec<serde_json::Value> = items
|
||||
.iter()
|
||||
.map(|id| serde_json::json!({"itemID": id}))
|
||||
.collect();
|
||||
let items_json: Vec<serde_json::Value> =
|
||||
items.iter().map(|id| serde_json::json!(*id)).collect();
|
||||
let item_build = parse_items_from_game_stats(&items_json);
|
||||
if item_build.is_some() {
|
||||
info!("[ITEMS] Successfully parsed items from teams[].players[]");
|
||||
@@ -855,10 +851,8 @@ impl LqpClient {
|
||||
);
|
||||
if let Some(player) = players.first() {
|
||||
if let Some(ref items) = player.items {
|
||||
let items_json: Vec<serde_json::Value> = items
|
||||
.iter()
|
||||
.map(|id| serde_json::json!({"itemID": id}))
|
||||
.collect();
|
||||
let items_json: Vec<serde_json::Value> =
|
||||
items.iter().map(|id| serde_json::json!(*id)).collect();
|
||||
let item_build = parse_items_from_game_stats(&items_json);
|
||||
if item_build.is_some() {
|
||||
return Ok(item_build);
|
||||
|
||||
@@ -299,7 +299,7 @@ pub fn detect_hardware_encoders() -> Vec<EncoderCapability> {
|
||||
info!("[ENCODER_DETECT] Starting hardware encoder detection...");
|
||||
|
||||
// Software encoding is always available=
|
||||
let capabilities = vec![EncoderCapability::Software];
|
||||
let mut capabilities = vec![EncoderCapability::Software];
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user