소스 검색

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;
 }