Prettified error messages, first work on Util::Config server helpers.
This commit is contained in:
parent
c6f63dfb95
commit
5c0f053006
25 changed files with 1254 additions and 327 deletions
|
@ -3,6 +3,7 @@
|
|||
#include <arpa/inet.h> //for htonl and friends
|
||||
#include "mp4.h"
|
||||
#include "json.h"
|
||||
#include "defines.h"
|
||||
|
||||
#define Int64 uint64_t
|
||||
|
||||
|
@ -2286,7 +2287,7 @@ namespace MP4 {
|
|||
|
||||
void AVCC::setPayload(std::string newPayload){
|
||||
if ( !reserve(0, payloadSize(), newPayload.size())){
|
||||
std::cerr << "Cannot allocate enough memory for payload" << std::endl;
|
||||
DEBUG_MSG(DLVL_ERROR, "Cannot allocate enough memory for payload");
|
||||
return;
|
||||
}
|
||||
memcpy((char*)payload(), (char*)newPayload.c_str(), newPayload.size());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue