Fixed sending metadata tracks through JSON::Value::sendTo().
This commit is contained in:
parent
12dd880bc1
commit
ca1ec8707a
1 changed files with 5 additions and 0 deletions
|
@ -581,6 +581,11 @@ void JSON::Value::sendTo(Socket::Connection & socket) const{
|
||||||
socket.SendNow("\000\000\356", 3);
|
socket.SendNow("\000\000\356", 3);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (isMember("tracks")){
|
||||||
|
socket.SendNow("DTSC", 4);
|
||||||
|
unsigned int size = htonl(packedSize());
|
||||||
|
socket.SendNow((char*)&size, 4);
|
||||||
|
}
|
||||||
socket.SendNow("\340", 1);
|
socket.SendNow("\340", 1);
|
||||||
if (objVal.size() > 0){
|
if (objVal.size() > 0){
|
||||||
for (JSON::ObjConstIter it = objVal.begin(); it != objVal.end(); it++){
|
for (JSON::ObjConstIter it = objVal.begin(); it != objVal.end(); it++){
|
||||||
|
|
Loading…
Add table
Reference in a new issue