Skip to content

Commit

Permalink
app/srs_app_rtmp_conn: move err result to RTC MACRO to fix compiling …
Browse files Browse the repository at this point in the history
…warning
  • Loading branch information
Steven Liu committed Jul 18, 2022
1 parent ad2d7c3 commit 8a6fa30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trunk/src/app/srs_app_rtmp_conn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,6 @@ 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 @@ -953,6 +952,7 @@ 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

0 comments on commit 8a6fa30

Please sign in to comment.