mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
Get rid of SINK_MESSAGE_PASS_SOCKET, since we don't really need it
This commit is contained in:
parent
aa310a40f8
commit
16d5aab020
1 changed files with 0 additions and 16 deletions
|
|
@ -113,10 +113,6 @@ static const char* const valid_modargs[] = {
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
|
||||||
SINK_MESSAGE_PASS_SOCKET = PA_SINK_MESSAGE_MAX
|
|
||||||
};
|
|
||||||
|
|
||||||
static int bt_audioservice_send(int sk, const bt_audio_msg_header_t *msg) {
|
static int bt_audioservice_send(int sk, const bt_audio_msg_header_t *msg) {
|
||||||
int e;
|
int e;
|
||||||
pa_log/*_debug*/("sending %s", bt_audio_strmsg(msg->msg_type));
|
pa_log/*_debug*/("sending %s", bt_audio_strmsg(msg->msg_type));
|
||||||
|
|
@ -549,15 +545,6 @@ static int sink_process_msg(pa_msgobject *o, int code, void *data, int64_t offse
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case SINK_MESSAGE_PASS_SOCKET: {
|
|
||||||
struct pollfd *pollfd;
|
|
||||||
pa_assert(!u->rtpoll_item);
|
|
||||||
u->rtpoll_item = pa_rtpoll_item_new(u->rtpoll, PA_RTPOLL_NEVER, 1);
|
|
||||||
pollfd = pa_rtpoll_item_get_pollfd(u->rtpoll_item, NULL);
|
|
||||||
pollfd->fd = u->stream_fd;
|
|
||||||
pollfd->events = pollfd->revents = 0;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return pa_sink_process_msg(o, code, data, offset, chunk);
|
return pa_sink_process_msg(o, code, data, offset, chunk);
|
||||||
|
|
@ -811,9 +798,6 @@ int pa__init(pa_module* m) {
|
||||||
}
|
}
|
||||||
pa_sink_put(u->sink);
|
pa_sink_put(u->sink);
|
||||||
|
|
||||||
/* hand the socket to the rt thread */
|
|
||||||
pa_asyncmsgq_post(u->thread_mq.inq, PA_MSGOBJECT(u->sink), SINK_MESSAGE_PASS_SOCKET, NULL, 0, NULL, NULL);
|
|
||||||
|
|
||||||
pa_modargs_free(ma);
|
pa_modargs_free(ma);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue