Pārlūkot izejas kodu

Log initially loaded codecs in start

Vincent Lang 9 gadi atpakaļ
vecāks
revīzija
160ff590cd
1 mainītis faili ar 14 papildinājumiem un 0 dzēšanām
  1. 14 0
      src/player/PlayerComponent.cpp

+ 14 - 0
src/player/PlayerComponent.cpp

@@ -163,6 +163,20 @@ bool PlayerComponent::componentInitialize()
   initializeCodecSupport();
   Codecs::updateCachedCodecList();
 
+  QString codecInfo;
+  for (auto codec : Codecs::getCachecCodecList())
+  {
+    if (codec.present)
+    {
+      if (codecInfo.size())
+        codecInfo += " ";
+      codecInfo += codec.driver;
+      if (codec.type == CodecType::Encoder)
+        codecInfo += "(enc)";
+    }
+  }
+  QLOG_INFO() << "Present codecs:" << qPrintable(codecInfo);
+
   return true;
 }