summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2014-05-03 18:53:45 +0300
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2014-05-03 22:31:58 +0300
commit3fb5b11920f9f8d2378494d7e2f79f2bd82626d5 (patch)
tree52604f88d1b9ee8fffed3682c67210629d558f03 /src
parentb61d75bdb8d38a45b5ef325a57d3fa59f39ffd56 (diff)
QGst/enums: Do not register StreamVolumeFormat with the type system
For some reason the 1.0 version of this enum doesn't have a GType, so it cannot be used with the type system. Registering it with G_TYPE_ENUM has no point because you cannot initialize a GValue to hold a G_TYPE_ENUM for example. It's better to fail at compilation time if something tries to use its non-existent GType.
Diffstat (limited to 'src')
-rw-r--r--src/QGst/enums.h2
-rw-r--r--src/QGst/gen.cpp2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/QGst/enums.h b/src/QGst/enums.h
index 13ac25e..fe8f08d 100644
--- a/src/QGst/enums.h
+++ b/src/QGst/enums.h
@@ -264,7 +264,7 @@ namespace QGst {
StreamVolumeFormatDb
};
}
-QGST_REGISTER_TYPE(QGst::StreamVolumeFormat) //codegen: GType=G_TYPE_ENUM
+//QGST_REGISTER_TYPE(QGst::StreamVolumeFormat)
namespace QGst {
enum ColorBalanceType {
diff --git a/src/QGst/gen.cpp b/src/QGst/gen.cpp
index 8daa0ab..81cbb98 100644
--- a/src/QGst/gen.cpp
+++ b/src/QGst/gen.cpp
@@ -412,8 +412,6 @@ REGISTER_TYPE_IMPLEMENTATION(QGst::Format,GST_TYPE_FORMAT)
REGISTER_TYPE_IMPLEMENTATION(QGst::StreamStatusType,GST_TYPE_STREAM_STATUS_TYPE)
-REGISTER_TYPE_IMPLEMENTATION(QGst::StreamVolumeFormat,G_TYPE_ENUM)
-
REGISTER_TYPE_IMPLEMENTATION(QGst::ColorBalanceType,GST_TYPE_COLOR_BALANCE_TYPE)
REGISTER_TYPE_IMPLEMENTATION(QGst::QueryTypeFlags,GST_TYPE_QUERY_TYPE_FLAGS)