capture: Add the passthrough format negotiation to capture streams.

This helps to keep the API more symmetrical and also potentially
allows support for passthrough monitor sources at some point in the future.
This commit is contained in:
Colin Guthrie 2011-05-17 21:56:10 +01:00
parent 30597b7c27
commit 5d35375aa7
18 changed files with 406 additions and 104 deletions

View file

@ -871,10 +871,9 @@ static pa_hook_result_t source_output_new_hook_callback(pa_core *c, pa_source_ou
if (PA_INVALID_INDEX != device_index) {
pa_source *source;
if ((source = pa_idxset_get_by_index(u->core->sources, device_index))) {
new_data->source = source;
new_data->save_source = FALSE;
}
if ((source = pa_idxset_get_by_index(u->core->sources, device_index)))
if (!pa_source_output_new_data_set_source(new_data, source, FALSE))
pa_log_debug("Not restoring device for stream because no supported format was found");
}
}
}