Skip to content

Commit

Permalink
Refine error code.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Aug 31, 2024
1 parent 1a6702f commit 9d02e59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion trunk/src/app/srs_app_http_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ srs_error_t SrsHttpStreamServer::http_mount(SrsRequest* r)

// Fail if system is disposing the entry.
if (entry->disposing) {
return srs_error_new(ERROR_NO_SOURCE, "stream is disposing");
return srs_error_new(ERROR_STREAM_DISPOSING, "stream is disposing");
}

entry->stream->update_auth(r);
Expand Down
3 changes: 2 additions & 1 deletion trunk/src/kernel/srs_kernel_error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@
XX(ERROR_BACKTRACE_ADDR2LINE , 1094, "BacktraceAddr2Line", "Backtrace addr2line failed") \
XX(ERROR_SYSTEM_FILE_NOT_OPEN , 1095, "FileNotOpen", "File is not opened") \
XX(ERROR_SYSTEM_FILE_SETVBUF , 1096, "FileSetVBuf", "Failed to set file vbuf") \
XX(ERROR_NO_SOURCE , 1097, "NoSource", "No source found")
XX(ERROR_NO_SOURCE , 1097, "NoSource", "No source found") \
XX(ERROR_STREAM_DISPOSING , 1098, "StreamDisposing", "Stream is disposing")

/**************************************************/
/* RTMP protocol error. */
Expand Down

0 comments on commit 9d02e59

Please sign in to comment.