Implement support for dynamic casting between QGstObject subclasses.
authorGeorge Kiagiadakis <kiagiadakis.george@gmail.com>
Sun, 2 Aug 2009 16:07:40 +0000 (19:07 +0300)
committerGeorge Kiagiadakis <kiagiadakis.george@gmail.com>
Sun, 2 Aug 2009 16:07:40 +0000 (19:07 +0300)
commit13dc65d44f01fc5e5df7f98fc71aeefffc9869eb
tree6c5eb599415f1689bab7e2024d689b06f2b207b0
parente6f0d35721f8324a94e068c11234a9b9928c5e03
Implement support for dynamic casting between QGstObject subclasses.

This adds a new qtgstreamer_cast() template function that takes into account the internal
GType of the object it is casting and appropriately returns NULL if the cast cannot be done.
For example, casting a QGstElement to a QGstPad will fail, but casting a QGstPipeline to
QGstElement and back to QGstPipeline will succeed.
18 files changed:
src/qgstbin.cpp
src/qgstbin.h
src/qgstbus.cpp
src/qgstbus.h
src/qgstdeclarations.h
src/qgstelement.cpp
src/qgstelement.h
src/qgstelementfactory.cpp
src/qgstelementfactory.h
src/qgstglobal.cpp
src/qgstobject.cpp
src/qgstobject.h
src/qgstpad.cpp
src/qgstpad.h
src/qgstpipeline.cpp
src/qgstpipeline.h
tests/qtgstreamertest/qtgstreamertest.cpp
tests/qtgstreamertest/qtgstreamertest.h