summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorJULIAN GARDNER <joolzg@btinternet.com>2011-05-18 16:51:20 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-05-18 17:17:56 +0200
commit8146d16b60ec84aae93cfc4a9444d879f9d5bbfc (patch)
tree4ea670daee93365bb4cd572a884260a2744b97d6 /libavformat
parente3ff6e8d0fb222a8fce7c747781258e6f5e47a70 (diff)
cleaned up the udp.c, removed some variables and an av_log
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/udp.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c
index 802cbd5975..8c8c195fc4 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -57,7 +57,6 @@ typedef struct {
/* Circular Buffer variables for use in UDP receive code */
int circular_buffer_size;
AVFifoBuffer *fifo;
- int circular_buffer_available_max;
int circular_buffer_error;
pthread_t circular_buffer_thread;
} UDPContext;
@@ -529,7 +528,6 @@ static int udp_read(URLContext *h, uint8_t *buf, int size)
UDPContext *s = h->priv_data;
int ret;
int avail;
- int left;
fd_set rfds;
struct timeval tv;
@@ -594,7 +592,6 @@ static int udp_close(URLContext *h)
if (s->is_multicast && (h->flags & AVIO_FLAG_READ))
udp_leave_multicast_group(s->udp_fd, (struct sockaddr *)&s->dest_addr);
closesocket(s->udp_fd);
- av_log( h, AV_LOG_INFO, "circular_buffer_info max:%d%%\r\n", (s->circular_buffer_available_max*100)/s->circular_buffer_size);
av_fifo_free(s->fifo);
av_free(s);
return 0;