我在客户端从udpsource接收视频时遇到错误:
else
这里定义总线
(Recievr:13885): GStreamer-CRITICAL **: gst_caps_get_structure: assertion `GST_IS_CAPS (caps)' failed
(Recievr:13885): GStreamer-CRITICAL **: gst_structure_get_fraction: assertion `structure != NULL' failed
(Recievr:13885): GStreamer-CRITICAL **: gst_caps_get_structure: assertion `GST_IS_CAPS (caps)' failed
(Recievr:13885): GStreamer-CRITICAL **: gst_structure_get_fraction: assertion `structure != NULL' failed
BUS CALL Internal data flow error.
Returned, stopping playback
Deleting pipeline
Here is my code: where I tried to receive video over udp and parallely to display the video. I am using gstreamer-0.10.29 with RHEL-6.5 and forced to work with same version only.Can anybody tell me where is the problem or plz solve my problem.
Client.c
#include <stdlib.h>
#include <gst/gst.h>
答案 0 :(得分:2)
如果您收到“* -CRITICAL”消息,可以使用一个简单的方法向下钻取:
G_DEBUG="fatal_criticals" gdb --args ./your_app
然后在gdb中,'r'运行它,当它崩溃时,输入'bt'来获得回溯。对于代码中第一行的自上而下并修复它。