From bc54194e4d9ff8f25f7bbb1561b84bee074d8262 Mon Sep 17 00:00:00 2001 From: Manuel Bachmann Date: Mon, 23 May 2016 16:39:52 +0200 Subject: Fix Radio plugin linking, improve Radio code Radio plugin now links correctly again (-lm was missing). Fix Radio plugin logic for new API, guard against some undefined values. Signed-off-by: Manuel Bachmann --- plugins/audio/audio-pulse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/audio') diff --git a/plugins/audio/audio-pulse.c b/plugins/audio/audio-pulse.c index 89e5c21c..7f511be1 100644 --- a/plugins/audio/audio-pulse.c +++ b/plugins/audio/audio-pulse.c @@ -42,7 +42,7 @@ unsigned char _pulse_init (const char *name, audioCtxHandleT *ctx) { /* allocate the global array if it hasn't been done */ if (!dev_ctx_p) - dev_ctx_p = (dev_ctx_pulse_T**) malloc (sizeof(dev_ctx_pulse_T)); + dev_ctx_p = (dev_ctx_pulse_T**) malloc (sizeof(dev_ctx_pulse_T*)); /* create a temporary device, to be held until sink gets discovered */ dev_ctx_pulse_T *dev_ctx_p_t = (dev_ctx_pulse_T*) malloc (sizeof(dev_ctx_pulse_T)); -- cgit 1.2.3-korg