diff options
Diffstat (limited to 'src/rtp.h')
-rw-r--r-- | src/rtp.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -89,13 +89,17 @@ public: void removeCSrc(csrc_t csrc); void clearCSrcs(); - void setPayload(const char *payload, size_t size); + /** + * @return Number of bytes put in payload, or -1 on error. + * (data too big to fit inside rtp payload) + */ + int setPayload(const char *payload, size_t size); size_t payload(char *payload, size_t maxsize) const; size_t payloadSize() const; const char *payloadData() const; size_t packet(char *packet, size_t maxsize) const; - void fromPacket(const char *packet, size_t size); + int fromPacket(const char *packet, size_t size); bool isValid(); void setValid(bool valid); |