Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix a crash #628

Merged
merged 2 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion audio1/audio_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ func (a *Audio) handleCardChanged(idx uint32) {
}

// 如果发生变化的是当前输出所用的声卡,且是蓝牙声卡
if idx == a.defaultSink.Card && isBluetoothCard(card.core) {
if a.defaultSink != nil && idx == a.defaultSink.Card && isBluetoothCard(card.core) {
if strings.Contains(strings.ToLower(card.ActiveProfile.Name), bluezModeA2dp) {
a.setPropBluetoothAudioMode(bluezModeA2dp)
} else if strings.Contains(strings.ToLower(card.ActiveProfile.Name), bluezModeHeadset) {
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
dde-daemon (6.0.39) unstable; urgency=medium

* fix: fix a crash

-- zsien <[email protected]> Mon, 29 Apr 2024 16:16:33 +0800

dde-daemon (6.0.38) unstable; urgency=medium

* feat: refactor default-file-manager
Expand Down
Loading