Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 324265
Collapse All | Expand All

(-)src/plugins/pulse/ao_pulse.c (-4 / +6 lines)
Lines 227-233 Link Here
227
    }
227
    }
228
228
229
229
230
    if (!(internal->simple = pa_simple_new(internal->server, fn ? t : "libao", PA_STREAM_PLAYBACK, internal->sink, fn ? t2 : "libao playback stream", &ss, &map, NULL, NULL)))
230
    if (!(internal->simple = pa_simple_new(internal->server, fn ? t : "libao", PA_STREAM_PLAYBACK, internal->sink, fn ? t2 : "libao playback stream", &ss, device->input_map ? &map : NULL, NULL, NULL)))
231
        return 0;
231
        return 0;
232
232
233
    device->driver_byte_format = AO_FMT_NATIVE;
233
    device->driver_byte_format = AO_FMT_NATIVE;
Lines 247-255 Link Here
247
    assert(device && device->internal);
247
    assert(device && device->internal);
248
    ao_pulse_internal *internal = (ao_pulse_internal *) device->internal;
248
    ao_pulse_internal *internal = (ao_pulse_internal *) device->internal;
249
249
250
    pa_simple_drain(internal->simple, NULL);
250
    if (internal->simple) {
251
    pa_simple_free(internal->simple);
251
        pa_simple_drain(internal->simple, NULL);
252
    internal->simple = NULL;
252
        pa_simple_free(internal->simple);
253
        internal->simple = NULL;
254
    }
253
255
254
    return 1;
256
    return 1;
255
}
257
}

Return to bug 324265