Commit f46d5453 authored by Max Kellermann's avatar Max Kellermann

output/Shout: pass shout_t* to shout_connect()

parent 8134b007
...@@ -330,25 +330,25 @@ ShoutOutput::Cancel() ...@@ -330,25 +330,25 @@ ShoutOutput::Cancel()
} }
static void static void
shout_connect(ShoutOutput *sd) ShoutOpen(shout_t *shout_conn)
{ {
switch (shout_open(sd->shout_conn)) { switch (shout_open(shout_conn)) {
case SHOUTERR_SUCCESS: case SHOUTERR_SUCCESS:
case SHOUTERR_CONNECTED: case SHOUTERR_CONNECTED:
break; break;
default: default:
throw FormatRuntimeError("problem opening connection to shout server %s:%i: %s", throw FormatRuntimeError("problem opening connection to shout server %s:%i: %s",
shout_get_host(sd->shout_conn), shout_get_host(shout_conn),
shout_get_port(sd->shout_conn), shout_get_port(shout_conn),
shout_get_error(sd->shout_conn)); shout_get_error(shout_conn));
} }
} }
void void
ShoutOutput::Open(AudioFormat &audio_format) ShoutOutput::Open(AudioFormat &audio_format)
{ {
shout_connect(this); ShoutOpen(shout_conn);
try { try {
encoder = prepared_encoder->Open(audio_format); encoder = prepared_encoder->Open(audio_format);
......
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