Qt5中的GStreamer错误

时间:2016-02-12 10:48:43

标签: c++ qt qt5 gstreamer qtgstreamer

当我尝试启动我的视频聊天应用程序时,它给了我错误:

(videowidget:9305): GLib-GObject-WARNING **: cannot register existing type 'GstObject'

(videowidget:9305): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(videowidget:9305): GLib-GObject-CRITICAL **: g_type_register_static: assertion 'parent_type > 0' failed

(videowidget:9305): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(videowidget:9305): GStreamer-CRITICAL **: gst_element_class_set_details_simple: assertion 'GST_IS_ELEMENT_CLASS (klass)' failed

(videowidget:9305): GStreamer-WARNING **: static caps 0xade3824c string is NULL

(videowidget:9305): GStreamer-CRITICAL **: gst_mini_object_unref: assertion 'mini_object != NULL' failed

(videowidget:9305): GStreamer-WARNING **: static caps 0xade3828c string is NULL

(videowidget:9305): GStreamer-CRITICAL **: gst_mini_object_unref: assertion 'mini_object != NULL' failed

(videowidget:9305): GStreamer-WARNING **: static caps 0xade3824c string is NULL

(videowidget:9305): GStreamer-CRITICAL **: gst_mini_object_unref: assertion 'mini_object != NULL' failed

我的目标机器0.10和1.0上安装了两个GStreamer版本,它们运行在Jessie 8.2上。

我发现当我卸载1.0时,0.10版需要gstreamer1.0的.so文件。

来自Qt示例文件夹的VideoWidget示例工作正常,但doc.qt.io/qt-5/videooverview.html中的简单示例将无效。

2 个答案:

答案 0 :(得分:0)

1.0 and 0.10 are parallel installable and I doubt one is trying to use a file from the other.

Those issues usually happen when the application was linked against both versions. While you can have both at your system, applications should link only against one of them.

答案 1 :(得分:0)

构建对象时,它的父级应为Q_NULL_POINTER

QFileDialog *pDlg = new QFileDialog();

而不是

QFileDialog *pDlg = new QFileDialog(this);