- for (port_name = s = buf; s; port_name = s + 1) {
- /* Assume that ports are separated by commas. We don't use
- * spaces because those are valid in client names. */
- s = strchr (port_name, ',');
- if (s)
- *s = '\0';
-
- app->port_count++;
- app->ports =
- realloc (app->ports, app->port_count * sizeof (snd_seq_addr_t));
- if (!app->ports) {
- GST_ERROR ("Out of memory");
- ret = -ENOMEM;
- goto out_free_buf;
- }