[Nice] [nice/master] Make gst element use larger buffer size of 64k (max udp packet size)
Olivier Crete
olivier.crete at collabora.co.uk
Wed Nov 5 14:00:55 PST 2008
darcs-hash:20080403221435-3e2dc-042b2046cd0e46bcaeebf81321db3eae7add4f4a.gz
---
gst/gstnicesrc.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/gst/gstnicesrc.c b/gst/gstnicesrc.c
index f89614e..96e20e8 100644
--- a/gst/gstnicesrc.c
+++ b/gst/gstnicesrc.c
@@ -42,6 +42,9 @@
#include "gstnicesrc.h"
+
+#define BUFFER_SIZE (65536)
+
static GstFlowReturn
gst_nice_src_create (
GstBaseSrc *basesrc,
@@ -156,14 +159,14 @@ gst_nice_src_create (
guint len;
nicesrc = GST_NICE_SRC (basesrc);
- res = gst_pad_alloc_buffer (basesrc->srcpad, offset, 1024, GST_PAD_CAPS
+ res = gst_pad_alloc_buffer (basesrc->srcpad, offset, BUFFER_SIZE, GST_PAD_CAPS
(basesrc->srcpad), &buf);
if (res != GST_FLOW_OK)
return res;
len = nice_agent_recv (nicesrc->agent, nicesrc->stream_id,
- nicesrc->component_id, 1024, (gchar *) buf->data);
+ nicesrc->component_id, BUFFER_SIZE, (gchar *) buf->data);
g_assert (len);
buf->size = len;
*buffer = buf;
--
1.5.6.5
More information about the Nice
mailing list