{"action":"created","issue":{"url":"https://api.github.com/repos/winlinvip/simple-rtmp-server/issues/288","labels_url":"https://api.github.com/repos/winlinvip/simple-rtmp-server/issues/288/labels{/name}","comments_url":"https://api.github.com/repos/winlinvip/simple-rtmp-server/issues/288/comments","events_url":"https://api.github.com/repos/winlinvip/simple-rtmp-server/issues/288/events","html_url":"https://github.com/winlinvip/simple-rtmp-server/issues/288","id":54279318,"number":288,"title":"软件一致性问题","user":{"login":"winlinvip","id":2777660,"avatar_url":"https://avatars.githubusercontent.com/u/2777660?v=3","gravatar_id":"","url":"https://api.github.com/users/winlinvip","html_url":"https://github.com/winlinvip","followers_url":"https://api.github.com/users/winlinvip/followers","following_url":"https://api.github.com/users/winlinvip/following{/other_user}","gists_url":"https://api.github.com/users/winlinvip/gists{/gist_id}","starred_url":"https://api.github.com/users/winlinvip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/winlinvip/subscriptions","organizations_url":"https://api.github.com/users/winlinvip/orgs","repos_url":"https://api.github.com/users/winlinvip/repos","events_url":"https://api.github.com/users/winlinvip/events{/privacy}","received_events_url":"https://api.github.com/users/winlinvip/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/winlinvip/simple-rtmp-server/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/winlinvip/simple-rtmp-server/milestones/2","html_url":"https://github.com/winlinvip/simple-rtmp-server/milestones/srs%202.0%20release","labels_url":"https://api.github.com/repos/winlinvip/simple-rtmp-server/milestones/2/labels","id":675577,"number":2,"title":"srs 2.0 release","description":"搞懂st，性能优化到10k播放，4k推流。srs-librtmp支持推h.264和aac裸码流。wiki翻译为en。其他必要的外围功能支持。","creator":{"login":"winlinvip","id":2777660,"avatar_url":"https://avatars.githubusercontent.com/u/2777660?v=3","gravatar_id":"","url":"https://api.github.com/users/winlinvip","html_url":"https://github.com/winlinvip","followers_url":"https://api.github.com/users/winlinvip/followers","following_url":"https://api.github.com/users/winlinvip/following{/other_user}","gists_url":"https://api.github.com/users/winlinvip/gists{/gist_id}","starred_url":"https://api.github.com/users/winlinvip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/winlinvip/subscriptions","organizations_url":"https://api.github.com/users/winlinvip/orgs","repos_url":"https://api.github.com/users/winlinvip/repos","events_url":"https://api.github.com/users/winlinvip/events{/privacy}","received_events_url":"https://api.github.com/users/winlinvip/received_events","type":"User","site_admin":false},"open_issues":23,"closed_issues":95,"state":"open","created_at":"2014-05-30T07:53:22Z","updated_at":"2015-04-03T04:13:08Z","due_on":"2015-12-30T16:00:00Z","closed_at":null},"comments":8,"created_at":"2015-01-14T03:13:31Z","updated_at":"2015-04-07T09:49:48Z","closed_at":null,"body":"有些设计或架构，甚至代码的变更，是由于考虑软件一致性的。"},"comment":{"url":"https://api.github.com/repos/winlinvip/simple-rtmp-server/issues/comments/90490243","html_url":"https://github.com/winlinvip/simple-rtmp-server/issues/288#issuecomment-90490243","issue_url":"https://api.github.com/repos/winlinvip/simple-rtmp-server/issues/288","id":90490243,"user":{"login":"winlinvip","id":2777660,"avatar_url":"https://avatars.githubusercontent.com/u/2777660?v=3","gravatar_id":"","url":"https://api.github.com/users/winlinvip","html_url":"https://github.com/winlinvip","followers_url":"https://api.github.com/users/winlinvip/followers","following_url":"https://api.github.com/users/winlinvip/following{/other_user}","gists_url":"https://api.github.com/users/winlinvip/gists{/gist_id}","starred_url":"https://api.github.com/users/winlinvip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/winlinvip/subscriptions","organizations_url":"https://api.github.com/users/winlinvip/orgs","repos_url":"https://api.github.com/users/winlinvip/repos","events_url":"https://api.github.com/users/winlinvip/events{/privacy}","received_events_url":"https://api.github.com/users/winlinvip/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T09:49:48Z","updated_at":"2015-04-07T09:49:48Z","body":"关于这个commit：https://github.com/winlinvip/simple-rtmp-server/commit/e56d7add444742c997ddb03f259d14cfc797f84e\r\n虽然只是配置的解析，但是改过之后明显理解起来要更好。另外，对于偏好开或者偏好关，用宏定义来解析，譬如：\r\n```\r\nbool SrsConfig::get_http_api_enabled(SrsConfDirective* conf)\r\n{\r\n    if (!conf) {\r\n        return false;\r\n    }\r\n    \r\n    conf = conf->get(\"enabled\");\r\n    if (!conf || conf->arg0().empty()) {\r\n        return false;\r\n    }\r\n    \r\n    return SRS_CONF_PERFER_FALSE(conf->arg0());\r\n}\r\n```\r\n这个会默认返回false，并且偏好返回false。譬如，配置为`enabled xxx;`也是flase。"}}