#include <string.h>
#include <stdint.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+
#include <bluetooth/bluetooth.h>
#include "a2dp-codecs.h"
GIOStatus status;
GIOFlags flags;
int fd;
+ int priority;
/* Proceed if stream was already acquired */
if (conn->stream == NULL) {
if (status != G_IO_STATUS_NORMAL)
GST_WARNING ("Error while setting server socket to block");
+ priority = 6;
+ if (setsockopt (fd, SOL_SOCKET, SO_PRIORITY, (const void *) &priority,
+ sizeof (priority)) < 0)
+ GST_WARNING ("Unable to set socket to low delay");
+
memset (data->buffer, 0, sizeof (data->buffer));
return TRUE;