Commit 7592ac56 authored by Olivier Crete's avatar Olivier Crete

Make gst element use larger buffer size of 64k (max udp packet size)

darcs-hash:20080403221435-3e2dc-042b2046cd0e46bcaeebf81321db3eae7add4f4a.gz
parent f9d55fd3
......@@ -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;
......
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