Browse Source

Revert "PlayerComponent: cache hwdec-interop debug info"

This reverts commit d2ea2cd77bd3c033f2a690ddcf22a012aa59ba94.

One part of the cause has been fixed in upstream mpv a while ago.
Vincent Lang 8 năm trước cách đây
mục cha
commit
fb189765e4
2 tập tin đã thay đổi với 1 bổ sung4 xóa
  1. 1 3
      src/player/PlayerComponent.cpp
  2. 0 1
      src/player/PlayerComponent.h

+ 1 - 3
src/player/PlayerComponent.cpp

@@ -1249,10 +1249,8 @@ QString PlayerComponent::videoInformation() const
   double displayFps = DisplayComponent::Get().currentRefreshRate();
   info << "Display FPS: " << MPV_PROPERTY("display-fps")
                           << " (" << displayFps << ")" << endl;
-  if (m_cachedInterop.isEmpty())
-    m_cachedInterop = MPV_PROPERTY("hwdec-interop");
   info << "Hardware Decoding: " << MPV_PROPERTY("hwdec-current")
-                                << " (" << m_cachedInterop << ")" << endl;
+                                << " (" << MPV_PROPERTY("hwdec-interop") << ")" << endl;
   info << endl;
   info << "Audio: " << endl;
   info << "Codec: " << MPV_PROPERTY("audio-codec") << endl;

+ 0 - 1
src/player/PlayerComponent.h

@@ -210,7 +210,6 @@ private:
   bool m_doAc3Transcoding;
   QStringList m_passthroughCodecs;
   QVariantMap m_serverMediaInfo;
-  mutable QString m_cachedInterop;
 };
 
 #endif // PLAYERCOMPONENT_H