Make directshow-plugin available.
No longer include <qedit.h> in directshow-plugin, which no longer ships in newer SDKs. Ensure it only provides the camera service if the WMF-plugin is built by using a different .json-file. Adapt qcamerabackend-test to use widgets. Task-number: QTBUG-28047 Change-Id: I22ea441b9edb56ff55bc275dba37c01c77d8dd90 Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
This commit is contained in:
committed by
The Qt Project
parent
f4348fe3ae
commit
b604d96ba8
@@ -54,7 +54,13 @@ class DSServicePlugin
|
||||
Q_OBJECT
|
||||
Q_INTERFACES(QMediaServiceSupportedDevicesInterface)
|
||||
Q_INTERFACES(QMediaServiceFeaturesInterface)
|
||||
// The player service provided by the WMF-plugin should preferably be used.
|
||||
// DirectShow should then only provide the camera (see QTBUG-29172, QTBUG-29175).
|
||||
#ifdef QMEDIA_DIRECTSHOW_PLAYER
|
||||
Q_PLUGIN_METADATA(IID "org.qt-project.qt.mediaserviceproviderfactory/5.0" FILE "directshow.json")
|
||||
#else
|
||||
Q_PLUGIN_METADATA(IID "org.qt-project.qt.mediaserviceproviderfactory/5.0" FILE "directshow_camera.json")
|
||||
#endif
|
||||
|
||||
public:
|
||||
QMediaService* create(QString const& key);
|
||||
|
||||
Reference in New Issue
Block a user