summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-03-03 15:28:26 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-03-04 13:08:25 +0900
commit081ddd26b42f309beb39b5b5f8fb5f6c20f4ec86 (patch)
tree4776c58ce177e7c096b2cb25cedef259cff533de
parent78349cc188a2b6f98419c112c3bd4bc337f9b0cc (diff)
downloadmpv-081ddd26b42f309beb39b5b5f8fb5f6c20f4ec86.tar.bz2
mpv-081ddd26b42f309beb39b5b5f8fb5f6c20f4ec86.tar.xz
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. (cherry picked from commit 1ba24d25853c0bb42526344345dc1c20741af338)
-rw-r--r--stream/stream_cdda.c2
1 files changed, 0 insertions, 2 deletions
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)