Commit fe897fd4 authored by Ghislain MARY's avatar Ghislain MARY

Add timestamp to the oRTP events.

parent 878dcde5
......@@ -44,6 +44,7 @@ typedef struct RtpEndpoint{
struct _OrtpEventData{
mblk_t *packet; /* most events are associated to a received packet */
RtpEndpoint *ep;
ortpTimeSpec ts;
union {
int telephone_event;
int payload_type;
......@@ -41,10 +41,13 @@ RtpEndpoint *rtp_endpoint_dup(const RtpEndpoint *ep){
OrtpEvent * ortp_event_new(unsigned long type){
OrtpEventData *ed;
const int size=sizeof(OrtpEventType)+sizeof(OrtpEventData);
mblk_t *m=allocb(size,0);
ed = ortp_event_get_data(m);
return m;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment