diff options
author | George Kiagiadakis <george.kiagiadakis@collabora.co.uk> | 2011-01-06 22:05:23 +0200 |
---|---|---|
committer | George Kiagiadakis <george.kiagiadakis@collabora.co.uk> | 2011-01-06 22:05:23 +0200 |
commit | 86725fc8d6475279d50ac0a86cd0271dc971ce83 (patch) | |
tree | 7de6bb74dfe0f2acd66df6704af58aa09971a39a /src/QGst/global.cpp | |
parent | e43f0c3f28086fd070db60ea24cedb68b80a0f69 (diff) |
Implement a new way of wraping objects, similar to the one glibmm uses.
Features:
* C++ wrappers are reused among several RefPointer instances.
* C++ wrappers are even saved in qdata where applicable, to make
sure they are only created once for each object. (This does
not apply to MiniObjects and Caps though)
* dynamicCast should be faster in certain cases, since it no longer
queries the GType of the instance if it is not necessary.
Diffstat (limited to 'src/QGst/global.cpp')
-rw-r--r-- | src/QGst/global.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/QGst/global.cpp b/src/QGst/global.cpp index 0f5fcf2..9299db0 100644 --- a/src/QGst/global.cpp +++ b/src/QGst/global.cpp @@ -22,6 +22,7 @@ namespace QGst { namespace Private { void registerValueVTables(); + void registerWrapperConstructors(); //generated by codegen } void init() @@ -31,11 +32,13 @@ void init() void init(int *argc, char **argv[]) { + QGlib::init(); GError *error; if (!gst_init_check(argc, argv, &error)) { throw QGlib::Error(error); } Private::registerValueVTables(); + Private::registerWrapperConstructors(); } void cleanup() |