mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-15 20:59:04 +00:00
winepulse: Don't probe default devices twice.
Also drop global format and period variables
This commit is contained in:
parent
45a3bfa223
commit
7dff198c7c
|
@ -99,10 +99,6 @@ typedef struct _PhysDevice {
|
||||||
static pa_context *pulse_ctx;
|
static pa_context *pulse_ctx;
|
||||||
static pa_mainloop *pulse_ml;
|
static pa_mainloop *pulse_ml;
|
||||||
|
|
||||||
/* Mixer format + period times */
|
|
||||||
static WAVEFORMATEXTENSIBLE pulse_fmt[2];
|
|
||||||
static REFERENCE_TIME pulse_min_period[2], pulse_def_period[2];
|
|
||||||
|
|
||||||
static struct list g_phys_speakers = LIST_INIT(g_phys_speakers);
|
static struct list g_phys_speakers = LIST_INIT(g_phys_speakers);
|
||||||
static struct list g_phys_sources = LIST_INIT(g_phys_sources);
|
static struct list g_phys_sources = LIST_INIT(g_phys_sources);
|
||||||
|
|
||||||
|
@ -797,9 +793,6 @@ static NTSTATUS pulse_test_connect(void *args)
|
||||||
pa_context_get_server(pulse_ctx),
|
pa_context_get_server(pulse_ctx),
|
||||||
pa_context_get_server_protocol_version(pulse_ctx));
|
pa_context_get_server_protocol_version(pulse_ctx));
|
||||||
|
|
||||||
pulse_probe_settings(1, NULL, &pulse_fmt[0], &pulse_def_period[0], &pulse_min_period[0]);
|
|
||||||
pulse_probe_settings(0, NULL, &pulse_fmt[1], &pulse_def_period[1], &pulse_min_period[1]);
|
|
||||||
|
|
||||||
free_phys_device_lists();
|
free_phys_device_lists();
|
||||||
list_init(&g_phys_speakers);
|
list_init(&g_phys_speakers);
|
||||||
list_init(&g_phys_sources);
|
list_init(&g_phys_sources);
|
||||||
|
|
Loading…
Reference in a new issue