summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2014-06-23 20:52:35 +0300
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2014-06-23 20:52:35 +0300
commitd009b84dcb60fca1a41a3e908bdb73a3f33bb38f (patch)
tree6b8419091089c7f5d14a14c12e6700900f90e003
parent9e5f20d9c199a7c827c14831717a837a53426faa (diff)
QGst::ElementFactory: change metadata() to take a const char * key
In the future we should also provide static const strings with the various pre-defined keys that are available as macros in C
-rw-r--r--src/QGst/elementfactory.cpp2
-rw-r--r--src/QGst/elementfactory.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/QGst/elementfactory.cpp b/src/QGst/elementfactory.cpp
index 245e071..18eed85 100644
--- a/src/QGst/elementfactory.cpp
+++ b/src/QGst/elementfactory.cpp
@@ -43,7 +43,7 @@ QGlib::Type ElementFactory::elementType() const
return gst_element_factory_get_element_type(object<GstElementFactory>());
}
-QString ElementFactory::metadata(const QByteArray &key) const
+QString ElementFactory::metadata(const char *key) const
{
return QString::fromUtf8(gst_element_factory_get_metadata(object<GstElementFactory>(), key));
}
diff --git a/src/QGst/elementfactory.h b/src/QGst/elementfactory.h
index 6e966a1..7bc778e 100644
--- a/src/QGst/elementfactory.h
+++ b/src/QGst/elementfactory.h
@@ -36,7 +36,7 @@ public:
static inline ElementPtr make(const QString & factoryName, const char *elementName = NULL);
QGlib::Type elementType() const;
- QString metadata(const QByteArray &) const;
+ QString metadata(const char *key) const;
uint padTemplatesCount() const;
int uriType() const;