summaryrefslogtreecommitdiffstats
path: root/src/oss.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/oss.c')
-rw-r--r--src/oss.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/oss.c b/src/oss.c
index 222503c..9bb7149 100644
--- a/src/oss.c
+++ b/src/oss.c
@@ -230,7 +230,6 @@ static int translate_error(int error) {
}
static int open_oss(ca_context *c, struct outstanding *out) {
- struct private *p;
int mode, val, test, ret;
ca_return_val_if_fail(c, CA_ERROR_INVALID);
@@ -241,8 +240,6 @@ static int open_oss(ca_context *c, struct outstanding *out) {
* multichannel streams. We cannot support those files hence */
ca_return_val_if_fail(ca_sound_file_get_nchannels(out->file) <= 2, CA_ERROR_NOTSUPPORTED);
- p = PRIVATE(c);
-
if ((out->pcm = open(c->device ? c->device : "/dev/dsp", O_WRONLY | O_NONBLOCK, 0)) < 0)
goto finish_errno;