Commit 26e943c0 authored by Warren Dukes's avatar Warren Dukes

fix oss_openDevice() to match the new openDevice callback protocol (w/o a audioFormat argument)

git-svn-id: https://svn.musicpd.org/mpd/trunk@2715 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent cd6af094
......@@ -106,9 +106,10 @@ static void oss_finishDriver(AudioOutput * audioOutput) {
freeOssData(od);
}
static int oss_openDevice(AudioOutput * audioOutput, AudioFormat * audioFormat)
static int oss_openDevice(AudioOutput * audioOutput)
{
OssData * od = audioOutput->data;
AudioFormat * audioFormat = &audioOutput->outAudioFormat;
#ifdef WORDS_BIGENDIAN
int i = AFMT_S16_BE;
#else
......
......@@ -604,9 +604,10 @@ static int getHTTPHello(InputStream * inStream) {
return 0;
}
}
case 404:
case 400:
case 401:
case 403:
case 404:
default:
close(data->sock);
data->connState = HTTP_CONN_STATE_CLOSED;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment