From 1ba24d25853c0bb42526344345dc1c20741af338 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 3 Mar 2015 15:28:26 +0100 Subject: stream_cdda: fix parameter passing All cdda options (except --cdrom-drive) were ignored, because the priv struct (with the options set) was just replaced. Oops. --- stream/stream_cdda.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'stream/stream_cdda.c') diff --git a/stream/stream_cdda.c b/stream/stream_cdda.c index 13ec14644b..8bb940032c 100644 --- a/stream/stream_cdda.c +++ b/stream/stream_cdda.c @@ -227,7 +227,6 @@ static void close_cdda(stream_t *s) cdda_priv *p = (cdda_priv *)s->priv; paranoia_free(p->cdp); cdda_close(p->cd); - free(p); } static int get_track_by_sector(cdda_priv *p, unsigned int sector) @@ -313,7 +312,6 @@ static int open_cdda(stream_t *st) return STREAM_ERROR; } - priv = calloc(1,sizeof(cdda_priv)); priv->cd = cdd; if (p->toc_bias) -- cgit v1.2.3