From ae74570ab8ba18e9e9e6e5a49e117586f43bcd04 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Sat, 23 Apr 2022 02:29:11 +0800 Subject: [PATCH] fix CI --- src/client.rs | 5 +++-- src/ui/cm.rs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/client.rs b/src/client.rs index 7950c06e0..7f71b1bbf 100644 --- a/src/client.rs +++ b/src/client.rs @@ -498,13 +498,14 @@ impl AudioHandler { if !spec.is_valid() { bail!("Invalid audio format"); } + use hbb_common::config::APP_NAME; self.simple = Some(Simple::new( None, // Use the default server - &crate::get_app_name(), // Our application’s name + APP_NAME, // Our application’s name Direction::Playback, // We want a playback stream None, // Use the default device - &crate::get_app_name(), // Description of our stream + "playback", // Description of our stream &spec, // Our sample format None, // Use default channel map None, // Use default buffering attributes diff --git a/src/ui/cm.rs b/src/ui/cm.rs index 6376ff026..4b787371b 100644 --- a/src/ui/cm.rs +++ b/src/ui/cm.rs @@ -465,7 +465,7 @@ async fn start_pa() { APP_NAME, // Our application’s name pulse::stream::Direction::Record, // We want a record stream Some(&device), // Use the default device - APP_NAME, // Description of our stream + "record", // Description of our stream &spec, // Our sample format None, // Use default channel map None, // Use default buffering attributes