source: Remove code needed for versions below 12.
We are moving from 12.2 to 14.2, those are only versions we need to build against.
This commit is contained in:
parent
bbc921b9e5
commit
5ff7642ca7
1 changed files with 1 additions and 20 deletions
|
|
@ -325,23 +325,6 @@ static int source_set_state_in_io_thread_cb(pa_source *s, pa_source_state_t new_
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* Called from IO context */
|
||||
static int source_process_msg(pa_msgobject *o, int code, void *data, int64_t offset, pa_memchunk *chunk) {
|
||||
#if PULSEAUDIO_VERSION < 12
|
||||
struct userdata *u = PA_SOURCE(o)->userdata;
|
||||
|
||||
switch (code) {
|
||||
case PA_SOURCE_MESSAGE_SET_STATE: {
|
||||
int r;
|
||||
if ((r = source_set_state_in_io_thread_cb(u->source, PA_PTR_TO_UINT(data), 0)) < 0)
|
||||
return r;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return pa_source_process_msg(o, code, data, offset, chunk);
|
||||
}
|
||||
|
||||
static int source_set_port_cb(pa_source *s, pa_device_port *p) {
|
||||
struct userdata *u = s->userdata;
|
||||
pa_droid_port_data *data;
|
||||
|
|
@ -741,10 +724,8 @@ pa_source *pa_droid_source_new(pa_module *m,
|
|||
|
||||
u->source->userdata = u;
|
||||
|
||||
u->source->parent.process_msg = source_process_msg;
|
||||
#if PULSEAUDIO_VERSION >= 12
|
||||
u->source->parent.process_msg = pa_source_process_msg;
|
||||
u->source->set_state_in_io_thread = source_set_state_in_io_thread_cb;
|
||||
#endif
|
||||
|
||||
source_set_mute_control(u);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue