Commit e79a82ba authored by Max Kellermann's avatar Max Kellermann

shout: merged open_shout_conn() into my_shout_open_device()

The method implementation my_shout_open_device() consists of only one line, the call to open_shout_conn(). Merge both functions into one.
parent cece6c00
...@@ -357,7 +357,8 @@ shout_connect(struct shout_data *sd) ...@@ -357,7 +357,8 @@ shout_connect(struct shout_data *sd)
} }
static bool static bool
open_shout_conn(void *data) my_shout_open_device(void *data,
G_GNUC_UNUSED struct audio_format *audio_format)
{ {
struct shout_data *sd = (struct shout_data *)data; struct shout_data *sd = (struct shout_data *)data;
bool ret; bool ret;
...@@ -379,15 +380,6 @@ open_shout_conn(void *data) ...@@ -379,15 +380,6 @@ open_shout_conn(void *data)
} }
static bool static bool
my_shout_open_device(void *data,
G_GNUC_UNUSED struct audio_format *audio_format)
{
struct shout_data *sd = (struct shout_data *)data;
return open_shout_conn(sd);
}
static bool
my_shout_play(void *data, const char *chunk, size_t size) my_shout_play(void *data, const char *chunk, size_t size)
{ {
struct shout_data *sd = (struct shout_data *)data; struct shout_data *sd = (struct shout_data *)data;
......
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