浏览代码

Log initially loaded codecs in start

Vincent Lang 9 年之前
父节点
当前提交
160ff590cd
共有 1 个文件被更改,包括 14 次插入0 次删除
  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;
 }