diff options
author | Olivier Crete <olivier.crete@collabora.co.uk> | 2008-04-03 22:14:00 +0000 |
---|---|---|
committer | Olivier Crete <olivier.crete@collabora.co.uk> | 2008-04-03 22:14:00 +0000 |
commit | 7592ac5693f174745021908cb1172848bdc6c51a (patch) | |
tree | 11679956962093522590545cb89d175788cbb0d6 /gst | |
parent | f9d55fd3f4bb6571707fd4a4cd1257109eba4668 (diff) | |
download | libnice-7592ac5693f174745021908cb1172848bdc6c51a.tar.gz |
Make gst element use larger buffer size of 64k (max udp packet size)
darcs-hash:20080403221435-3e2dc-042b2046cd0e46bcaeebf81321db3eae7add4f4a.gz
Diffstat (limited to 'gst')
-rw-r--r-- | 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; |