aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/raop_output_plugin.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-07-20 21:05:07 +0200
committerMax Kellermann <max@duempel.org>2011-07-20 21:11:06 +0200
commitd1f653be65fa29cbce75db0551bce9f3598fe88c (patch)
tree8693f06caea4a902c044b3df9192514eb974dcfb /src/output/raop_output_plugin.h
parent0035dceb0acd702b7e128a4ba00331e3db5be963 (diff)
downloadmpd-d1f653be65fa29cbce75db0551bce9f3598fe88c.tar.gz
mpd-d1f653be65fa29cbce75db0551bce9f3598fe88c.tar.xz
mpd-d1f653be65fa29cbce75db0551bce9f3598fe88c.zip
output/raop: use GMutex instead of pthread_mutex_t
Be portable on WIN32.
Diffstat (limited to 'src/output/raop_output_plugin.h')
-rw-r--r--src/output/raop_output_plugin.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/output/raop_output_plugin.h b/src/output/raop_output_plugin.h
index caf3178f4..b21a9691f 100644
--- a/src/output/raop_output_plugin.h
+++ b/src/output/raop_output_plugin.h
@@ -20,7 +20,7 @@
#ifndef MPD_OUTPUT_RAOP_PLUGIN_H
#define MPD_OUTPUT_RAOP_PLUGIN_H
-#include <pthread.h>
+#include <glib.h>
#include <stdbool.h>
#include <netinet/in.h>
#include <sys/time.h>
@@ -101,7 +101,7 @@ struct raop_data {
unsigned volume;
- pthread_mutex_t control_mutex;
+ GMutex *control_mutex;
bool started;
bool paused;
@@ -142,8 +142,8 @@ struct raop_session_data {
int wblk_wsize;
int wblk_remsize;
- pthread_mutex_t data_mutex;
- pthread_mutex_t list_mutex;
+ GMutex *data_mutex;
+ GMutex *list_mutex;
};
//static struct raop_session_data *raop_session;