diff options
Diffstat (limited to 'ext/qt/gstplugin.cc')
-rw-r--r-- | ext/qt/gstplugin.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/qt/gstplugin.cc b/ext/qt/gstplugin.cc index 2fa10f5e7..01ca2752c 100644 --- a/ext/qt/gstplugin.cc +++ b/ext/qt/gstplugin.cc @@ -23,6 +23,7 @@ #endif #include "gstqtsink.h" +#include "gstqtsrc.h" #include <QtQml/QQmlApplicationEngine> static gboolean @@ -32,6 +33,11 @@ plugin_init (GstPlugin * plugin) GST_RANK_NONE, GST_TYPE_QT_SINK)) { return FALSE; } + + if (!gst_element_register (plugin, "qmlglsrc", + GST_RANK_NONE, GST_TYPE_QT_SRC)) { + return FALSE; + } /* this means the plugin must be loaded before the qml engine is loaded */ qmlRegisterType<QtGLVideoItem> ("org.freedesktop.gstreamer.GLVideoItem", 1, 0, "GstGLVideoItem"); @@ -41,6 +47,6 @@ plugin_init (GstPlugin * plugin) GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR, qt, - "Qt sink", + "Qt gl plugin", plugin_init, PACKAGE_VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN) |