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

for #179, update the metadata of flv dvr file.

This commit is contained in:
winlin 2015-02-21 19:14:05 +08:00
parent 7077b74d03
commit 1445086451
8 changed files with 270 additions and 25 deletions

View file

@ -448,11 +448,6 @@ SrsAmf0Any* SrsUnSortedHashtable::value_at(int index)
void SrsUnSortedHashtable::set(string key, SrsAmf0Any* value)
{
if (!value) {
srs_warn("add a NULL propertity %s", key.c_str());
return;
}
std::vector<SrsAmf0ObjectPropertyType>::iterator it;
for (it = properties.begin(); it != properties.end(); ++it) {
@ -467,7 +462,9 @@ void SrsUnSortedHashtable::set(string key, SrsAmf0Any* value)
}
}
properties.push_back(std::make_pair(key, value));
if (value) {
properties.push_back(std::make_pair(key, value));
}
}
SrsAmf0Any* SrsUnSortedHashtable::get_property(string name)