mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
Fix gstreamer element names
This commit is contained in:
parent
457f42c9ca
commit
64860357c4
2 changed files with 5 additions and 5 deletions
|
@ -2,8 +2,8 @@
|
||||||
//
|
//
|
||||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
import org.freedesktop.gstreamer.GLVideoItem 1.0
|
import org.freedesktop.gstreamer.Qt6GLVideoItem 1.0
|
||||||
|
|
||||||
GstGLVideoItem {
|
GstGLQt6VideoItem {
|
||||||
objectName: "videoCallItem"
|
objectName: "videoCallItem"
|
||||||
}
|
}
|
||||||
|
|
|
@ -333,7 +333,7 @@ newVideoSinkChain(GstElement *pipe)
|
||||||
GstElement *compositor = gst_element_factory_make("compositor", "compositor");
|
GstElement *compositor = gst_element_factory_make("compositor", "compositor");
|
||||||
GstElement *glupload = gst_element_factory_make("glupload", nullptr);
|
GstElement *glupload = gst_element_factory_make("glupload", nullptr);
|
||||||
GstElement *glcolorconvert = gst_element_factory_make("glcolorconvert", nullptr);
|
GstElement *glcolorconvert = gst_element_factory_make("glcolorconvert", nullptr);
|
||||||
GstElement *qmlglsink = gst_element_factory_make("qmlglsink", nullptr);
|
GstElement *qmlglsink = gst_element_factory_make("qml6glsink", nullptr);
|
||||||
GstElement *glsinkbin = gst_element_factory_make("glsinkbin", nullptr);
|
GstElement *glsinkbin = gst_element_factory_make("glsinkbin", nullptr);
|
||||||
g_object_set(compositor, "background", 1, nullptr);
|
g_object_set(compositor, "background", 1, nullptr);
|
||||||
g_object_set(qmlglsink, "widget", WebRTCSession::instance().getVideoItem(), nullptr);
|
g_object_set(qmlglsink, "widget", WebRTCSession::instance().getVideoItem(), nullptr);
|
||||||
|
@ -609,7 +609,7 @@ WebRTCSession::havePlugins(bool isVideo,
|
||||||
"glcolorconvert",
|
"glcolorconvert",
|
||||||
"glsinkbin",
|
"glsinkbin",
|
||||||
"glupload",
|
"glupload",
|
||||||
"qmlglsink",
|
"qml6glsink",
|
||||||
"rtpvp8pay",
|
"rtpvp8pay",
|
||||||
"tee",
|
"tee",
|
||||||
"videoconvert",
|
"videoconvert",
|
||||||
|
@ -672,7 +672,7 @@ WebRTCSession::havePlugins(bool isVideo,
|
||||||
|
|
||||||
if (isVideo || isScreenshare) {
|
if (isVideo || isScreenshare) {
|
||||||
// load qmlglsink to register GStreamer's GstGLVideoItem QML type
|
// load qmlglsink to register GStreamer's GstGLVideoItem QML type
|
||||||
GstElement *qmlglsink = gst_element_factory_make("qmlglsink", nullptr);
|
GstElement *qmlglsink = gst_element_factory_make("qml6glsink", nullptr);
|
||||||
gst_object_unref(qmlglsink);
|
gst_object_unref(qmlglsink);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue