aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/raop_output_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-08-30 07:39:05 +0200
committerMax Kellermann <max@duempel.org>2011-08-30 07:39:05 +0200
commit74a39c715b8c13b937965695624436aed45a7a4b (patch)
treeba3d8d24d20cd3685d6d0a99c5f202006563974f /src/output/raop_output_plugin.c
parent195496333b221fed25e7fbee7cd0589ec1fefbb8 (diff)
downloadmpd-74a39c715b8c13b937965695624436aed45a7a4b.tar.gz
mpd-74a39c715b8c13b937965695624436aed45a7a4b.tar.xz
mpd-74a39c715b8c13b937965695624436aed45a7a4b.zip
ntp_server: move code to udp_server.c
Diffstat (limited to 'src/output/raop_output_plugin.c')
-rw-r--r--src/output/raop_output_plugin.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/output/raop_output_plugin.c b/src/output/raop_output_plugin.c
index ee5f67411..7ff5b009a 100644
--- a/src/output/raop_output_plugin.c
+++ b/src/output/raop_output_plugin.c
@@ -799,13 +799,9 @@ raop_output_open(void *data, struct audio_format *audio_format, GError **error_r
if (raop_session->data_fd < 0)
return false;
- int fd = open_udp_socket(NULL, &raop_session->ntp.port,
- error_r);
- if (fd < 0)
+ if (!ntp_server_open(&raop_session->ntp, error_r))
return false;
- ntp_server_open(&raop_session->ntp, fd);
-
raop_session->ctrl.fd =
open_udp_socket(NULL, &raop_session->ctrl.port,
error_r);