| 1 | // Copyright (C) 2024 The Qt Company Ltd. |
|---|---|
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
| 3 | |
| 4 | #include <QtMultimedia/private/qplatformmediaplugin_p.h> |
| 5 | |
| 6 | #include <qgstreamerintegration_p.h> |
| 7 | |
| 8 | QT_BEGIN_NAMESPACE |
| 9 | |
| 10 | class QGstreamerMediaPlugin : public QPlatformMediaPlugin |
| 11 | { |
| 12 | Q_OBJECT |
| 13 | Q_PLUGIN_METADATA(IID QPlatformMediaPlugin_iid FILE "gstreamer.json") |
| 14 | |
| 15 | public: |
| 16 | QGstreamerMediaPlugin() = default; |
| 17 | |
| 18 | QPlatformMediaIntegration* create(const QString &name) override |
| 19 | { |
| 20 | if (name == u"gstreamer") |
| 21 | return new QGstreamerIntegration; |
| 22 | return nullptr; |
| 23 | } |
| 24 | }; |
| 25 | |
| 26 | QT_END_NAMESPACE |
| 27 | |
| 28 | #include "qgstreamerplugin.moc" |
| 29 |
