mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-09 13:29:59 -05:00
typesafe casts
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1573 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
23d01bb75d
commit
55e0866297
2 changed files with 4 additions and 4 deletions
|
|
@ -667,7 +667,7 @@ int pa_sink_process_msg(pa_msgobject *o, int code, void *userdata, int64_t offse
|
|||
switch ((pa_sink_message_t) code) {
|
||||
|
||||
case PA_SINK_MESSAGE_ADD_INPUT: {
|
||||
pa_sink_input *i = userdata;
|
||||
pa_sink_input *i = PA_SINK_INPUT(userdata);
|
||||
pa_hashmap_put(s->thread_info.inputs, PA_UINT32_TO_PTR(i->index), pa_sink_input_ref(i));
|
||||
|
||||
/* Since the caller sleeps in pa_sink_input_put(), we can
|
||||
|
|
@ -690,7 +690,7 @@ int pa_sink_process_msg(pa_msgobject *o, int code, void *userdata, int64_t offse
|
|||
}
|
||||
|
||||
case PA_SINK_MESSAGE_REMOVE_INPUT: {
|
||||
pa_sink_input *i = userdata;
|
||||
pa_sink_input *i = PA_SINK_INPUT(userdata);
|
||||
|
||||
/* Since the caller sleeps in pa_sink_input_disconnect(),
|
||||
* we can safely access data outside of thread_info even
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue