ports/net-im/libjingle/files/patch-talk__third_party__mediastreamer__msbuffer.h
Mario Sergio Fujikawa Ferreira c170c3911b o More updates to libjingle's third party mediaphone (obtained from
current CVS of net/linphone http://savannah.gnu.org/projects/linphone/)
  library [1]
o Pacify gcc: add missing "return" values to non-void functions
o This last round of patches get voice communications to "realtime"
  responsiveness levels. Previously, there were a couple seconds
  of latency on communications which made them a patience test.
	- Particularly, the change on
	  talk/third_party/mediastreamer/msrtprecv.c
	  where we now rely on the rtp session's send_pt payload
	  instead of the recv_pt one
o Bump PORTREVISION

Obtained from:	linphone's CVS [1]
2006-05-11 04:53:30 +00:00

37 lines
1.2 KiB
C

--- ./talk/third_party/mediastreamer/msbuffer.h.orig Thu Mar 16 18:43:06 2006
+++ ./talk/third_party/mediastreamer/msbuffer.h Thu May 11 00:12:20 2006
@@ -37,28 +37,28 @@
{
gchar *buffer;
guint32 size;
- guint16 ref_count;
- guint16 flags;
-#define MS_BUFFER_CONTIGUOUS (1)
+ gint ref_count;
+ void (*freefn)(void *);
+ void *freearg;
}MSBuffer;
MSBuffer * ms_buffer_new(guint32 size);
+MSBuffer *ms_buffer_new_with_buf(char *extbuf, int size,void (*freefn)(void *), void *freearg);
void ms_buffer_destroy(MSBuffer *buf);
struct _MSMessage
{
MSBuffer *buffer; /* points to a MSBuffer */
- void *data; /*points to buffer->buffer */
+ char *data; /*points to buffer->buffer */
guint32 size; /* the size of the buffer to read in data. It may not be the
physical size (I mean buffer->buffer->size */
struct _MSMessage *next;
struct _MSMessage *prev; /* MSMessage are queued into MSQueues */
+ gboolean markbit;
};
typedef struct _MSMessage MSMessage;
-
-MSBuffer *ms_buffer_alloc(gint flags);
MSMessage *ms_message_new(gint size);
#define ms_message_set_buf(m,b) do { (b)->ref_count++; (m)->buffer=(b); (m)->data=(b)->buffer; (m)->size=(b)->size; }while(0)