繁体   English   中英

使用g_object_set / strchr的分段错误

[英]Segmentation fault with g_object_set / strchr

这行让我出现了分段错误

g_object_set(G_OBJECT(data.udpsrc), "port", 5000, "caps", caps, NULL);

哪里

  • data.udpsrc = gst_element_factory_make("udpsrc", "source");
  • caps = gst_caps_new_empty_simple("application/x-rtp");

这是gdb的输出:

Program received signal SIGSEGV, Segmentation fault.
strchr () at ../ports/sysdeps/arm/armv6/strchr.S:28
28  ../ports/sysdeps/arm/armv6/strchr.S: No such file or directory.
(gdb) bt
#0  strchr () at ../ports/sysdeps/arm/armv6/strchr.S:28
#1  0x76e618d8 in g_param_spec_pool_lookup () from /usr/lib/arm-linux-gnueabihf/libgobject-2.0.so.0
#2  0x76e5c6a4 in g_object_set_valist () from /usr/lib/arm-linux-gnueabihf/libgobject-2.0.so.0
#3  0x76e5d00c in g_object_set () from /usr/lib/arm-linux-gnueabihf/libgobject-2.0.so.0
#4  0x00010dc4 in main ()

这是错误740191 您至少需要将Gstreamer更新到1.4.5版本。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM