aboutsummaryrefslogtreecommitdiff
path: root/src/decoder/decoder_control.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/decoder/decoder_control.c')
-rw-r--r--src/decoder/decoder_control.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/decoder/decoder_control.c b/src/decoder/decoder_control.c
index ec9b9791..48782531 100644
--- a/src/decoder/decoder_control.c
+++ b/src/decoder/decoder_control.c
@@ -28,9 +28,9 @@
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "decoder_control"
-struct decoder_control *dc_new(GCond *client_cond)
+DecoderControl *dc_new(GCond *client_cond)
{
- struct decoder_control *dc = av_mallocz(sizeof(*dc));
+ DecoderControl *dc = av_mallocz(sizeof(*dc));
dc->mutex = g_mutex_new();
dc->cond = g_cond_new();
@@ -42,7 +42,7 @@ struct decoder_control *dc_new(GCond *client_cond)
return dc;
}
-void dc_free(struct decoder_control *dc)
+void dc_free(DecoderControl *dc)
{
g_cond_free(dc->cond);
g_mutex_free(dc->mutex);
@@ -52,27 +52,27 @@ void dc_free(struct decoder_control *dc)
av_freep(&dc);
}
-static void dc_command_wait_locked(struct decoder_control *dc)
+static void dc_command_wait_locked(DecoderControl *dc)
{
while (dc->command != DECODE_COMMAND_NONE)
g_cond_wait(dc->client_cond, dc->mutex);
}
-static void dc_command_locked(struct decoder_control *dc, enum decoder_command cmd)
+static void dc_command_locked(DecoderControl *dc, enum decoder_command cmd)
{
dc->command = cmd;
decoder_signal(dc);
dc_command_wait_locked(dc);
}
-static void dc_command(struct decoder_control *dc, enum decoder_command cmd)
+static void dc_command(DecoderControl *dc, enum decoder_command cmd)
{
decoder_lock(dc);
dc_command_locked(dc, cmd);
decoder_unlock(dc);
}
-static void dc_command_async(struct decoder_control *dc, enum decoder_command cmd)
+static void dc_command_async(DecoderControl *dc, enum decoder_command cmd)
{
decoder_lock(dc);
@@ -82,7 +82,7 @@ static void dc_command_async(struct decoder_control *dc, enum decoder_command cm
decoder_unlock(dc);
}
-void dc_start(struct decoder_control *dc, struct song *song,
+void dc_start(DecoderControl *dc, struct song *song,
unsigned start_ms, unsigned end_ms,
int buffer_samples, struct music_pipe *pipe)
{
@@ -98,7 +98,7 @@ void dc_start(struct decoder_control *dc, struct song *song,
dc_command(dc, DECODE_COMMAND_START);
}
-void dc_stop(struct decoder_control *dc)
+void dc_stop(DecoderControl *dc)
{
decoder_lock(dc);
@@ -115,7 +115,7 @@ void dc_stop(struct decoder_control *dc)
decoder_unlock(dc);
}
-bool dc_seek(struct decoder_control *dc, double where)
+bool dc_seek(DecoderControl *dc, double where)
{
assert(dc->state != DECODE_STATE_START);
assert(where >= 0.0);
@@ -134,7 +134,7 @@ bool dc_seek(struct decoder_control *dc, double where)
return true;
}
-void dc_quit(struct decoder_control *dc)
+void dc_quit(DecoderControl *dc)
{
assert(dc->thread != NULL);
@@ -145,7 +145,7 @@ void dc_quit(struct decoder_control *dc)
dc->thread = NULL;
}
-void dc_mixramp_start(struct decoder_control *dc, char *mixramp_start)
+void dc_mixramp_start(DecoderControl *dc, char *mixramp_start)
{
assert(dc != NULL);
@@ -154,7 +154,7 @@ void dc_mixramp_start(struct decoder_control *dc, char *mixramp_start)
g_debug("mixramp_start = %s", mixramp_start ? mixramp_start : "NULL");
}
-void dc_mixramp_end(struct decoder_control *dc, char *mixramp_end)
+void dc_mixramp_end(DecoderControl *dc, char *mixramp_end)
{
assert(dc != NULL);
@@ -163,7 +163,7 @@ void dc_mixramp_end(struct decoder_control *dc, char *mixramp_end)
g_debug("mixramp_end = %s", mixramp_end ? mixramp_end : "NULL");
}
-void dc_mixramp_prev_end(struct decoder_control *dc, char *mixramp_prev_end)
+void dc_mixramp_prev_end(DecoderControl *dc, char *mixramp_prev_end)
{
assert(dc != NULL);