summaryrefslogtreecommitdiffstats
path: root/stream/stream_cdda.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream_cdda.c')
-rw-r--r--stream/stream_cdda.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/stream/stream_cdda.c b/stream/stream_cdda.c
index 856c9736d2..f6740c1816 100644
--- a/stream/stream_cdda.c
+++ b/stream/stream_cdda.c
@@ -283,7 +283,7 @@ static int control(stream_t *stream, int cmd, void *arg)
return STREAM_UNSUPPORTED;
}
-static int open_cdda(stream_t *st, int m)
+static int open_cdda(stream_t *st)
{
cdda_priv *priv = st->priv;
cdda_priv *p = priv;
@@ -292,10 +292,6 @@ static int open_cdda(stream_t *st, int m)
cdrom_drive_t *cdd = NULL;
int last_track;
- if (m != STREAM_READ) {
- return STREAM_UNSUPPORTED;
- }
-
if (!p->device) {
if (cdrom_device)
p->device = talloc_strdup(NULL, cdrom_device);