clients/playrtp.c: Make the `getaddrinfo' hints structure writable.
[disorder] / clients / playrtp.c
index 372bfcf..eda7ce9 100644 (file)
@@ -704,7 +704,7 @@ int main(int argc, char **argv) {
   int monitor = 0;
   static const int one = 1;
 
-  static const struct addrinfo prefs = {
+  struct addrinfo prefs = {
     .ai_flags = AI_PASSIVE,
     .ai_family = PF_INET,
     .ai_socktype = SOCK_DGRAM,
@@ -754,6 +754,7 @@ int main(int argc, char **argv) {
     }
   }
   if(config_read(0, NULL)) disorder_fatal(0, "cannot read configuration");
+  /* Choose a sensible default audio backend */
   if(!backend) {
     backend = uaudio_default(uaudio_apis, UAUDIO_API_CLIENT);
     if(!backend)