瀏覽代碼

Fix a silly typo

Vincent Lang 9 年之前
父節點
當前提交
6a9bf56af3
共有 3 個文件被更改,包括 6 次插入6 次删除
  1. 4 4
      src/player/CodecsComponent.cpp
  2. 1 1
      src/player/CodecsComponent.h
  3. 1 1
      src/player/PlayerComponent.cpp

+ 4 - 4
src/player/CodecsComponent.cpp

@@ -172,7 +172,7 @@ void Codecs::updateCachedCodecList()
 }
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
-const QList<CodecDriver>& Codecs::getCachecCodecList()
+const QList<CodecDriver>& Codecs::getCachedCodecList()
 {
   return g_cachedCodecList;
 }
@@ -454,7 +454,7 @@ void CodecsFetcher::processCodecDownloadDone(const QByteArray& data, const Codec
 
   // This causes libmpv and eventually libavcodec to rescan and load new codecs.
   Codecs::updateCachedCodecList();
-  for (const CodecDriver& item : Codecs::getCachecCodecList())
+  for (const CodecDriver& item : Codecs::getCachedCodecList())
   {
     if (Codecs::sameCodec(item, codec) && !item.present)
     {
@@ -524,7 +524,7 @@ static bool useSystemVideoDecoders()
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 static CodecDriver selectBestDecoder(const StreamInfo& stream)
 {
-  QList<CodecDriver> codecs = Codecs::findCodecsByFormat(Codecs::getCachecCodecList(), CodecType::Decoder, stream.codec);
+  QList<CodecDriver> codecs = Codecs::findCodecsByFormat(Codecs::getCachedCodecList(), CodecType::Decoder, stream.codec);
   CodecDriver best = {};
   int bestScore = -1;
   for (auto codec : codecs)
@@ -607,7 +607,7 @@ QList<CodecDriver> Codecs::determineRequiredCodecs(const PlaybackInfo& info)
 
   if (needAC3Encoder)
   {
-    QList<CodecDriver> codecs = Codecs::findCodecsByFormat(Codecs::getCachecCodecList(), CodecType::Encoder, "ac3");
+    QList<CodecDriver> codecs = Codecs::findCodecsByFormat(Codecs::getCachedCodecList(), CodecType::Encoder, "ac3");
     CodecDriver encoder = {};
     for (auto codec : codecs)
     {

+ 1 - 1
src/player/CodecsComponent.h

@@ -128,7 +128,7 @@ public:
 
   static void updateCachedCodecList();
 
-  static const QList<CodecDriver>& getCachecCodecList();
+  static const QList<CodecDriver>& getCachedCodecList();
 
   static QList<CodecDriver> findCodecsByFormat(const QList<CodecDriver>& list, CodecType type, const QString& format);
   static QList<CodecDriver> determineRequiredCodecs(const PlaybackInfo& info);

+ 1 - 1
src/player/PlayerComponent.cpp

@@ -164,7 +164,7 @@ bool PlayerComponent::componentInitialize()
   Codecs::updateCachedCodecList();
 
   QString codecInfo;
-  for (auto codec : Codecs::getCachecCodecList())
+  for (auto codec : Codecs::getCachedCodecList())
   {
     if (codec.present)
     {