chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
scripts/teardown.in no longer removes things that are (now) installed
[disorder]
/
clients
/
playrtp-mem.c
diff --git
a/clients/playrtp-mem.c
b/clients/playrtp-mem.c
index e101978bad0aafaa7bbabe73fe73ff9aafac7400..2a868de87bd1d1874e868782582a23fc77e32835 100644
(file)
--- a/
clients/playrtp-mem.c
+++ b/
clients/playrtp-mem.c
@@
-21,12
+21,9
@@
* @brief RTP player memory management
*/
* @brief RTP player memory management
*/
-#include <config.h>
-#include "types.h"
+#include "common.h"
#include <pthread.h>
#include <pthread.h>
-#include <assert.h>
-#include <string.h>
#include "mem.h"
#include "vector.h"
#include "mem.h"
#include "vector.h"
@@
-63,7
+60,7
@@
static size_t count_free_packets;
static pthread_mutex_t mem_lock = PTHREAD_MUTEX_INITIALIZER;
/** @brief Return a new packet */
static pthread_mutex_t mem_lock = PTHREAD_MUTEX_INITIALIZER;
/** @brief Return a new packet */
-struct packet *new_packet(void) {
+struct packet *
playrtp_
new_packet(void) {
struct packet *p;
pthread_mutex_lock(&mem_lock);
struct packet *p;
pthread_mutex_lock(&mem_lock);
@@
-83,7
+80,7
@@
struct packet *new_packet(void) {
}
/** @brief Free a packet */
}
/** @brief Free a packet */
-void free_packet(struct packet *p) {
+void
playrtp_
free_packet(struct packet *p) {
union free_packet *u = (union free_packet *)p;
pthread_mutex_lock(&mem_lock);
u->next = free_packets;
union free_packet *u = (union free_packet *)p;
pthread_mutex_lock(&mem_lock);
u->next = free_packets;