mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-23 03:10:04 +08:00
推流失败时打印日志
This commit is contained in:
parent
60a2346819
commit
f8467f21fb
@ -47,6 +47,7 @@ void RtmpPusher::teardown() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void RtmpPusher::onPublishResult(const SockException &ex, bool handshake_done) {
|
void RtmpPusher::onPublishResult(const SockException &ex, bool handshake_done) {
|
||||||
|
DebugL << ex.what();
|
||||||
if (ex.getErrCode() == Err_shutdown) {
|
if (ex.getErrCode() == Err_shutdown) {
|
||||||
//主动shutdown的,不触发回调
|
//主动shutdown的,不触发回调
|
||||||
return;
|
return;
|
||||||
|
@ -95,6 +95,7 @@ void RtspPusher::publish(const string &url_str) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void RtspPusher::onPublishResult(const SockException &ex, bool handshake_done) {
|
void RtspPusher::onPublishResult(const SockException &ex, bool handshake_done) {
|
||||||
|
DebugL << ex.what();
|
||||||
if (ex.getErrCode() == Err_shutdown) {
|
if (ex.getErrCode() == Err_shutdown) {
|
||||||
//主动shutdown的,不触发回调
|
//主动shutdown的,不触发回调
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user