aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-02-13 18:10:09 +0100
committerMax Kellermann <max@duempel.org>2012-02-13 18:10:36 +0100
commit9c92afa5fef58f3a7781d9cd95de26ab07cdd079 (patch)
treea71052068d7641fb8720c08c77985dfcd5ea7303 /src
parent66235fddff35aa760b66f86312c6007bbea0bcaf (diff)
downloadmpd-9c92afa5fef58f3a7781d9cd95de26ab07cdd079.tar.gz
mpd-9c92afa5fef58f3a7781d9cd95de26ab07cdd079.tar.xz
mpd-9c92afa5fef58f3a7781d9cd95de26ab07cdd079.zip
output/winmm: remove pointless NULL check
pcm_buffer_get() cannot ever return NULL.
Diffstat (limited to 'src')
-rw-r--r--src/output/winmm_output_plugin.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/output/winmm_output_plugin.c b/src/output/winmm_output_plugin.c
index b9687874d..4312c635e 100644
--- a/src/output/winmm_output_plugin.c
+++ b/src/output/winmm_output_plugin.c
@@ -200,11 +200,7 @@ winmm_set_buffer(struct winmm_output *wo, struct winmm_buffer *buffer,
GError **error_r)
{
void *dest = pcm_buffer_get(&buffer->buffer, size);
- if (dest == NULL) {
- g_set_error(error_r, winmm_output_quark(), 0,
- "Out of memory");
- return false;
- }
+ assert(dest != NULL);
memcpy(dest, data, size);