diff --git a/trunk/src/app/srs_app_ingest.cpp b/trunk/src/app/srs_app_ingest.cpp index 512aa7132..20b8651f3 100644 --- a/trunk/src/app/srs_app_ingest.cpp +++ b/trunk/src/app/srs_app_ingest.cpp @@ -356,10 +356,11 @@ int SrsIngester::initialize_ffmpeg(SrsFFMPEG* ffmpeg, SrsConfDirective* vhost, S // find the app and stream in rtmp url std::string app, stream; - srs_parse_rtmp_url(output, app, stream); - size_t pos; - if ((pos = app.rfind("?")) != std::string::npos) { - app = app.substr(0, pos); + if (true) { + int port = SRS_CONSTS_RTMP_DEFAULT_PORT; + std::string tcUrl, schema, host, vhost2, param; + srs_parse_rtmp_url(output, tcUrl, stream); + srs_discovery_tc_url(tcUrl, schema, host, vhost2, app, port, param); } std::string log_file = SRS_CONSTS_NULL_FILE; // disabled diff --git a/trunk/src/app/srs_app_process.cpp b/trunk/src/app/srs_app_process.cpp index 00240eb07..5f12b98d9 100644 --- a/trunk/src/app/srs_app_process.cpp +++ b/trunk/src/app/srs_app_process.cpp @@ -122,6 +122,9 @@ int SrsProcess::start() return ret; } + // for osx(lldb) to debug the child process. + //kill(0, SIGSTOP); + // child process: ffmpeg encoder engine. if (pid == 0) { // ignore the SIGINT and SIGTERM