1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Kernel: Support grab backtrace stack when assert fail. v5.0.80

This commit is contained in:
winlin 2022-10-21 23:30:43 +08:00
parent 5a1a234855
commit e10fa6dc91
19 changed files with 183 additions and 7 deletions

View file

@ -30,6 +30,9 @@ SrsConfig* _srs_config = new SrsConfig();
// @global Other variables.
bool _srs_in_docker = false;
// The binary name of SRS.
const char* _srs_binary = NULL;
srs_error_t parse(std::string mp4_file, bool verbose)
{
srs_error_t err = srs_success;
@ -87,6 +90,8 @@ int main(int argc, char** argv)
{
printf("SRS MP4 parser/%d.%d.%d, parse and show the mp4 boxes structure.\n",
VERSION_MAJOR, VERSION_MINOR, VERSION_REVISION);
_srs_binary = argv[0];
if (argc < 2) {
printf("Usage: %s <mp4_file> [verbose]\n"