libao pulse plugin does not ignore unsupported options as claimed

Bug #1525776 reported by Ryan C. Underwood
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libao (Ubuntu)
New
Undecided
Unassigned

Bug Description

In the documentation for ao_open_live():
https://xiph.org/ao/doc/ao_open_live.html
"Unsupported options are ignored."

However, the pulse plugin does not ignore unsupported options:

int ao_plugin_set_option(ao_device *device, const char *key, const char *value) {
  ao_pulse_internal *internal;
  assert(device && device->internal && key && value);
  internal = (ao_pulse_internal *) device->internal;

  if (!strcmp(key, "server")) {
    free(internal->server);
    internal->server = strdup(value);
  } else if (!strcmp(key, "sink") || !strcmp(key, "dev") || !strcmp(key, "id")) {
    free(internal->sink);
    internal->sink = strdup(value);
  } else
    return 0;
[..]
}

Passing the "buffer_time" option which is needed because of this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1193688
causes libao pulse to fail initialization on Ubuntu contrary to the documentation.

summary: - ao_open_live() does not ignore unsupported options as claimed
+ libao pulse plugin does not ignore unsupported options as claimed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.