aboutsummaryrefslogtreecommitdiff
path: root/src/decoder_control.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-08-08 21:54:54 +0200
committerMax Kellermann <max@duempel.org>2012-08-08 22:38:16 +0200
commit8c425c758c9217b3388ca5bc1ea2883a1c3c2bc6 (patch)
tree9ecf8a7652966be4f0655f8a377d6c2613ec88db /src/decoder_control.c
parent0b9e91229791e143d5da79f14cf7012ead9c3bc7 (diff)
decoder_control: add GError attribute
Diffstat (limited to 'src/decoder_control.c')
-rw-r--r--src/decoder_control.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/decoder_control.c b/src/decoder_control.c
index 70f34b33..caa3705f 100644
--- a/src/decoder_control.c
+++ b/src/decoder_control.c
@@ -52,6 +52,8 @@ dc_new(GCond *client_cond)
void
dc_free(struct decoder_control *dc)
{
+ dc_clear_error(dc);
+
g_cond_free(dc->cond);
g_mutex_free(dc->mutex);
g_free(dc->mixramp_start);
@@ -79,6 +81,7 @@ static void
dc_command(struct decoder_control *dc, enum decoder_command cmd)
{
decoder_lock(dc);
+ dc_clear_error(dc);
dc_command_locked(dc, cmd);
decoder_unlock(dc);
}