Browse Source

PlayerComponent: log device name before it's overwritten

Made for pretty confusing log files.
Vincent Lang 8 năm trước cách đây
mục cha
commit
07abc1b3d0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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))
   if (!m_audioDevices.contains(device))
   {
   {
-    device = "auto";
     QLOG_WARN() << "Not using audio device" << device << "because it's not present.";
     QLOG_WARN() << "Not using audio device" << device << "because it's not present.";
+    device = "auto";
   }
   }
 
 
   mpv::qt::set_property(m_mpv, "audio-device", device);
   mpv::qt::set_property(m_mpv, "audio-device", device);