Ticket #44: pulseaudio-esound-port.patch
| File pulseaudio-esound-port.patch, 1.1 kB (added by Apatsch, 1 year ago) |
|---|
-
pulseaudio-0.9.5/src/modules/module-esound-sink.c
old new 83 83 84 84 static const char* const valid_modargs[] = { 85 85 "server", 86 "port", 86 87 "cookie", 87 88 "rate", 88 89 "format", … … 321 322 pa_sample_spec ss; 322 323 pa_modargs *ma = NULL; 323 324 char *t; 325 uint32_t port=0; 324 326 325 327 assert(c && m); 326 328 … … 362 364 goto fail; 363 365 } 364 366 365 if (!(u->client = pa_socket_client_new_string(u->core->mainloop, p = pa_modargs_get_value(ma, "server", ESD_UNIX_SOCKET_NAME), ESD_DEFAULT_PORT))) { 367 if (pa_modargs_get_value_u32(ma, "port", &port) < 0) { 368 port=ESD_DEFAULT_PORT; 369 } 370 371 if (!(u->client = pa_socket_client_new_string(u->core->mainloop, p = pa_modargs_get_value(ma, "server", ESD_UNIX_SOCKET_NAME), port))) { 366 372 pa_log("failed to connect to server."); 367 373 goto fail; 368 374 } 375 369 376 pa_socket_client_set_callback(u->client, on_connection, u); 370 377 371 378 /* Prepare the initial request */
