Browse Source

PlayerComponent: rename installedCodecs() to installedCodecDrivers()

The word "codec" is ambiguous: it can mean a decoder, encoder, or a
media format. Other places try to make this clearer by using the word
"driver" for the decoder/encoder implementation. The CodecDriver struct
also uses this naming.
Vincent Lang 9 years ago
parent
commit
2e4deeaae7
3 changed files with 3 additions and 3 deletions
  1. 1 1
      src/player/CodecsComponent.cpp
  2. 1 1
      src/player/PlayerComponent.cpp
  3. 1 1
      src/player/PlayerComponent.h

+ 1 - 1
src/player/CodecsComponent.cpp

@@ -150,7 +150,7 @@ void Codecs::updateCachedCodecList()
   // on the CodecManifest.h list (system codecs, or when compiled  without
   // codec loading).
 
-  QList<CodecDriver> installed = PlayerComponent::Get().installedCodecs();
+  QList<CodecDriver> installed = PlayerComponent::Get().installedCodecDrivers();
 
   // Surely O(n^2) won't be causing trouble, right?
   for (const CodecDriver& installedCodec : installed)

+ 1 - 1
src/player/PlayerComponent.cpp

@@ -982,7 +982,7 @@ QList<CodecDriver> convertCodecList(QVariant list, CodecType type)
 }
 
 /////////////////////////////////////////////////////////////////////////////////////////
-QList<CodecDriver> PlayerComponent::installedCodecs()
+QList<CodecDriver> PlayerComponent::installedCodecDrivers()
 {
   QList<CodecDriver> codecs;
 

+ 1 - 1
src/player/PlayerComponent.h

@@ -102,7 +102,7 @@ public:
   // Downloadable, but not yet installed codecs are excluded.
   // May include codecs that do not work, like vc1_mmal on RPIs with no license.
   // (checkCodecSupport() handles this specific case to a degree.)
-  Q_INVOKABLE virtual QList<CodecDriver> installedCodecs();
+  Q_INVOKABLE virtual QList<CodecDriver> installedCodecDrivers();
 
   Q_INVOKABLE void userCommand(QString command);