diff --git a/trunk/src/app/srs_app_process.cpp b/trunk/src/app/srs_app_process.cpp index 8f799e592..b8e2104d1 100644 --- a/trunk/src/app/srs_app_process.cpp +++ b/trunk/src/app/srs_app_process.cpp @@ -150,12 +150,6 @@ int srs_redirect_output(string from_file, int to_fd) return ret; } - // disable output. - if (from_file == SRS_CONSTS_NULL_FILE) { - ::close(to_fd); - return ret; - } - // redirect the fd to file. int fd = -1; int flags = O_CREAT|O_WRONLY|O_APPEND;