We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
您好: 我在调用您的工程的时候,写了如下的demo: #include "RtspParser.h"
int main(int argc,char *argv[]) { CRtspParser rtsp_parse; //char const *progName = "testparse"; //char const *rtspurl = "rtsp://192.168.10.129:8554/cam_update1.264"; void *objstream=nullptr; rtsp_parse.rtspClientOpenAndPlay("DESCRIBE", "rtsp://192.168.10.29:8554/cam_update1.264", 0, objstream); }
一运行就会遇到段错误,Segmentation fault (core dumped) gdb调试打印如下:
Starting program: /home/pes/mxj/data/nfs/mahxn0/workspace/multimedia_api/RtspClientParser/build/test [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault. 0x0000007fb7bd89f8 in RTSPClient::setRequestFields (this=0x555557a720, request=0x555557f950, cmdURL=@0x7fb7bd88b8: 0xa9017bfdd105c3ff <error: Cannot access memory at address 0xa9017bfdd105c3ff>, cmdURLWasAllocated=, protocolStr=, extraHeaders=, extraHeadersWereAllocated=) at ../src/liveMedia/RTSPClient.cpp:596 596 extraHeaders = (char*)"Accept: application/sdp\r\n"; (gdb) bt #0 0x0000007fb7bd89f8 in RTSPClient::setRequestFields (this=0x555557a720, request=0x555557f950, cmdURL=@0x7fb7bd88b8: 0xa9017bfdd105c3ff <error: Cannot access memory at address 0xa9017bfdd105c3ff>, cmdURLWasAllocated=, protocolStr=, extraHeaders=, extraHeadersWereAllocated=) at ../src/liveMedia/RTSPClient.cpp:596 #1 0x0000007fb7fbcf88 in CRtspParser::rtspClientOpenAndPlay (this=, progName=0x7fffffee80 "", rtspURL=0x5555555e88 "rtsp://192.168.10.29:8554/cam_update1.264", nIpcID=, pStreamObj=0x3b5f92a5142db800) at /home/pes/mxj/data/nfs/mahxn0/workspace/multimedia_api/RtspClientParser/src/RtspParser.cpp:404 #2 0x0000005555555c9c in main (argc=, argv=) at /home/pes/mxj/data/nfs/mahxn0/workspace/multimedia_api/RtspClientParser/example/demo.cpp:9 (gdb)
请问是我哪里调用不对吗
The text was updated successfully, but these errors were encountered:
No branches or pull requests
您好:
我在调用您的工程的时候,写了如下的demo:
#include "RtspParser.h"
int main(int argc,char *argv[])
{
CRtspParser rtsp_parse;
//char const *progName = "testparse";
//char const *rtspurl = "rtsp://192.168.10.129:8554/cam_update1.264";
void *objstream=nullptr;
rtsp_parse.rtspClientOpenAndPlay("DESCRIBE", "rtsp://192.168.10.29:8554/cam_update1.264", 0, objstream);
}
一运行就会遇到段错误,Segmentation fault (core dumped)
gdb调试打印如下:
Starting program: /home/pes/mxj/data/nfs/mahxn0/workspace/multimedia_api/RtspClientParser/build/test
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x0000007fb7bd89f8 in RTSPClient::setRequestFields (this=0x555557a720, request=0x555557f950,
cmdURL=@0x7fb7bd88b8: 0xa9017bfdd105c3ff <error: Cannot access memory at address 0xa9017bfdd105c3ff>, cmdURLWasAllocated=,
protocolStr=, extraHeaders=, extraHeadersWereAllocated=)
at ../src/liveMedia/RTSPClient.cpp:596
596 extraHeaders = (char*)"Accept: application/sdp\r\n";
(gdb) bt
#0 0x0000007fb7bd89f8 in RTSPClient::setRequestFields (this=0x555557a720, request=0x555557f950,
cmdURL=@0x7fb7bd88b8: 0xa9017bfdd105c3ff <error: Cannot access memory at address 0xa9017bfdd105c3ff>, cmdURLWasAllocated=,
protocolStr=, extraHeaders=, extraHeadersWereAllocated=)
at ../src/liveMedia/RTSPClient.cpp:596
#1 0x0000007fb7fbcf88 in CRtspParser::rtspClientOpenAndPlay (this=, progName=0x7fffffee80 "",
rtspURL=0x5555555e88 "rtsp://192.168.10.29:8554/cam_update1.264", nIpcID=, pStreamObj=0x3b5f92a5142db800)
at /home/pes/mxj/data/nfs/mahxn0/workspace/multimedia_api/RtspClientParser/src/RtspParser.cpp:404
#2 0x0000005555555c9c in main (argc=, argv=)
at /home/pes/mxj/data/nfs/mahxn0/workspace/multimedia_api/RtspClientParser/example/demo.cpp:9
(gdb)
请问是我哪里调用不对吗
The text was updated successfully, but these errors were encountered: