Showing the changes to interface/src/Application.cpp (1 of 12 files). Show all
Unified · Split
| @@ -85,6 +85,7 @@ · 84 unmodified lines | ||
| 85 | 85 | #include <PhysicsEngine.h> |
| 86 | 86 | #include <PhysicsHelpers.h> |
| 87 | 87 | #include <plugins/PluginManager.h> |
| 88 | +#include <plugins/CodecPlugin.h> | |
| 88 | 89 | #include <RenderableWebEntityItem.h> |
| 89 | 90 | #include <RenderShadowTask.h> |
| 90 | 91 | #include <RenderDeferredTask.h> |
| @@ -1236,7 +1237,13 @@ QString Application::getUserAgent() { · 1145 unmodified lines | ||
| 1236 | 1237 | userAgent += " " + formatPluginName(ip->getName()); |
| 1237 | 1238 | } |
| 1238 | 1239 | } |
| 1240 | + // for codecs, we include all of them, even if not active | |
| 1241 | + auto codecPlugins = PluginManager::getInstance()->getCodecPlugins(); | |
| 1242 | + for (auto& cp : codecPlugins) { | |
| 1243 | + userAgent += " " + formatPluginName(cp->getName()); | |
| 1244 | + } | |
| 1239 | 1245 | |
| 1246 | + qDebug() << __FUNCTION__ << ":" << userAgent; | |
| 1240 | 1247 | return userAgent; |
| 1241 | 1248 | } |
| 1242 | 1249 | |