mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-01 23:57:37 +08:00
修改常量命名
This commit is contained in:
@@ -306,7 +306,7 @@ public:
|
||||
const map<string,string> &header = map<string,string>()){
|
||||
_metadata.set("duration", dur_sec);
|
||||
_metadata.set("fileSize", (int)fileSize);
|
||||
_metadata.set("server",SERVER_NAME);
|
||||
_metadata.set("server",kServerName);
|
||||
for (auto &pr : header){
|
||||
_metadata.set(pr.first, pr.second);
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ public:
|
||||
*/
|
||||
virtual void setMetaData(const AMFValue &metadata) {
|
||||
_metadata = metadata;
|
||||
_metadata.set("server", SERVER_NAME);
|
||||
_metadata.set("server", kServerName);
|
||||
_have_video = _metadata["videocodecid"];
|
||||
_have_audio = _metadata["audiocodecid"];
|
||||
if (_ring) {
|
||||
|
||||
Reference in New Issue
Block a user