diff options
author | Yoann Lopes <yoann.lopes@qt.io> | 2016-07-15 10:33:52 +0200 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@qt.io> | 2016-08-23 09:18:06 +0000 |
commit | efcd7edc0b3db498181b4fd9bea234e08634714c (patch) | |
tree | 5531c0e37c0b6192a12fb3c30a1c1bd57e45bdf0 /src/plugins/gstreamer/mediacapture/qgstreamervideoencode.h | |
parent | 9e679084899db5b212b439248f3670a2342e4f57 (diff) |
GStreamer use QGstCodecsInfo in QGstreamerVideoEncode
Dynamically retrieve the list of available codecs rather than having a
hardcoded list.
Change-Id: Ib9c4d75b1b397f137b9021d8b7ed8646c0e84d14
Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'src/plugins/gstreamer/mediacapture/qgstreamervideoencode.h')
-rw-r--r-- | src/plugins/gstreamer/mediacapture/qgstreamervideoencode.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/gstreamer/mediacapture/qgstreamervideoencode.h b/src/plugins/gstreamer/mediacapture/qgstreamervideoencode.h index f4134b46f..0c8d99d1d 100644 --- a/src/plugins/gstreamer/mediacapture/qgstreamervideoencode.h +++ b/src/plugins/gstreamer/mediacapture/qgstreamervideoencode.h @@ -46,6 +46,8 @@ #include <QtCore/qmap.h> #include <QtCore/qset.h> +#include <private/qgstcodecsinfo_p.h> + #include <gst/gst.h> QT_BEGIN_NAMESPACE @@ -84,10 +86,7 @@ public: private: QGstreamerCaptureSession *m_session; - QStringList m_codecs; - QMap<QString,QString> m_codecDescriptions; - QMap<QString,QByteArray> m_elementNames; - QMap<QString,QStringList> m_codecOptions; + QGstCodecsInfo m_codecs; QVideoEncoderSettings m_videoSettings; QMap<QString, QMap<QString, QVariant> > m_options; |