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

support ingest hls live stream to RTMP.

This commit is contained in:
winlin 2015-04-20 16:25:48 +08:00
parent 23b978c0bb
commit 2239e9f1fd
7 changed files with 1103 additions and 10 deletions

View file

@ -274,7 +274,7 @@ bool SrsFastLog::generate_header(bool error, const char* tag, int context_id, co
// to calendar time
struct tm* tm;
if (_srs_config->get_utc_time()) {
if (_srs_config && _srs_config->get_utc_time()) {
if ((tm = gmtime(&tv.tv_sec)) == NULL) {
return false;
}