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) { ...@@ -106,9 +106,10 @@ static void oss_finishDriver(AudioOutput * audioOutput) {
freeOssData(od); freeOssData(od);
} }
static int oss_openDevice(AudioOutput * audioOutput, AudioFormat * audioFormat) static int oss_openDevice(AudioOutput * audioOutput)
{ {
OssData * od = audioOutput->data; OssData * od = audioOutput->data;
AudioFormat * audioFormat = &audioOutput->outAudioFormat;
#ifdef WORDS_BIGENDIAN #ifdef WORDS_BIGENDIAN
int i = AFMT_S16_BE; int i = AFMT_S16_BE;
#else #else
......
...@@ -604,9 +604,10 @@ static int getHTTPHello(InputStream * inStream) { ...@@ -604,9 +604,10 @@ static int getHTTPHello(InputStream * inStream) {
return 0; return 0;
} }
} }
case 404:
case 400: case 400:
case 401: case 401:
case 403:
case 404:
default: default:
close(data->sock); close(data->sock);
data->connState = HTTP_CONN_STATE_CLOSED; 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