summaryrefslogtreecommitdiff
path: root/src/rtp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rtp.h')
-rw-r--r--src/rtp.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/rtp.h b/src/rtp.h
index b7aa8b4..350eddc 100644
--- a/src/rtp.h
+++ b/src/rtp.h
@@ -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);