Skip to content

Commit

Permalink
RTMP: Fix unused variable warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Jul 20, 2022
1 parent b08be8b commit 46def44
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions trunk/src/app/srs_app_rtmp_conn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,7 @@ srs_error_t SrsRtmpConn::do_publishing(SrsLiveSource* source, SrsPublishRecvThre

srs_error_t SrsRtmpConn::acquire_publish(SrsLiveSource* source)
{
srs_error_t err = srs_success;

SrsRequest* req = info->req;

Expand All @@ -952,7 +953,6 @@ srs_error_t SrsRtmpConn::acquire_publish(SrsLiveSource* source)

// Check whether RTC stream is busy.
#ifdef SRS_RTC
srs_error_t err = srs_success;
SrsRtcSource *rtc = NULL;
bool rtc_server_enabled = _srs_config->get_rtc_server_enabled();
bool rtc_enabled = _srs_config->get_rtc_enabled(req->vhost);
Expand Down Expand Up @@ -982,10 +982,12 @@ srs_error_t SrsRtmpConn::acquire_publish(SrsLiveSource* source)

// Start publisher now.
if (info->edge) {
return source->on_edge_start_publish();
err = source->on_edge_start_publish();
} else {
return source->on_publish();
err = source->on_publish();
}

return err;
}

void SrsRtmpConn::release_publish(SrsLiveSource* source)
Expand Down

0 comments on commit 46def44

Please sign in to comment.