Change RefCountedObject::object() to be a template that automatically casts to the...
authorGeorge Kiagiadakis <kiagiadakis.george@gmail.com>
Sat, 3 Jul 2010 17:40:25 +0000 (20:40 +0300)
committerGeorge Kiagiadakis <kiagiadakis.george@gmail.com>
Sat, 3 Jul 2010 17:40:25 +0000 (20:40 +0300)
commitd12fca55c73ea3d7b54a42f1d78c0022dc8c72e7
tree0b2cc6d3a06f13e732a0e9486fd2696a8b138005
parent8d11fbd2e7c7139083892656eb3e6b3cf94d0bcb
Change RefCountedObject::object() to be a template that automatically casts to the requested pointer type.
This is to avoid the overhead of using gstreamer's GST_FOO() macros that internally make a type check too.
15 files changed:
src/QGlib/object.cpp
src/QGlib/paramspec.cpp
src/QGlib/refpointer.h
src/QGst/bin.cpp
src/QGst/bus.cpp
src/QGst/caps.cpp
src/QGst/childproxy.cpp
src/QGst/element.cpp
src/QGst/elementfactory.cpp
src/QGst/ghostpad.cpp
src/QGst/message.cpp
src/QGst/miniobject.cpp
src/QGst/object.cpp
src/QGst/pad.cpp
src/QGst/pluginfeature.cpp