瀏覽代碼

PlayerComponent: log device name before it's overwritten

Made for pretty confusing log files.
Vincent Lang 8 年之前
父節點
當前提交
07abc1b3d0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/player/PlayerComponent.cpp

+ 1 - 1
src/player/PlayerComponent.cpp

@@ -892,8 +892,8 @@ void PlayerComponent::updateAudioDevice()
 
   if (!m_audioDevices.contains(device))
   {
-    device = "auto";
     QLOG_WARN() << "Not using audio device" << device << "because it's not present.";
+    device = "auto";
   }
 
   mpv::qt::set_property(m_mpv, "audio-device", device);