mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-04 01:37:33 +08:00
完善错误提示
This commit is contained in:
@@ -25,7 +25,7 @@ RtspPusher::~RtspPusher() {
|
||||
void RtspPusher::teardown() {
|
||||
if (alive()) {
|
||||
sendRtspRequest("TEARDOWN" ,_strContentBase);
|
||||
shutdown();
|
||||
shutdown(SockException(Err_shutdown,"teardown"));
|
||||
}
|
||||
|
||||
reset();
|
||||
@@ -329,7 +329,7 @@ inline void RtspPusher::sendRtpPacket(const RtpPacket::Ptr & pkt) {
|
||||
int iTrackIndex = getTrackIndexByTrackType(pkt->type);
|
||||
auto &pSock = _apUdpSock[iTrackIndex];
|
||||
if (!pSock) {
|
||||
shutdown();
|
||||
shutdown(SockException(Err_shutdown,"udp sock not opened yet"));
|
||||
return;
|
||||
}
|
||||
BufferRtp::Ptr buffer(new BufferRtp(pkt,4));
|
||||
|
||||
Reference in New Issue
Block a user