Sfoglia il codice sorgente

PlayerComponent: log device name before it's overwritten

Made for pretty confusing log files.
Vincent Lang 8 anni fa
parent
commit
07abc1b3d0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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);