gpt4 book ai didi

c - g_object_set/strchr 的段错误

转载 作者:行者123 更新时间:2023-11-30 15:01:12 27 4
gpt4 key购买 nike

这行代码给我带来了段错误:

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 ()

最佳答案

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

关于c - g_object_set/strchr 的段错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41614067/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com