mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
fix misplace _ref() calls that should have been _assert_ref()
This commit is contained in:
parent
f6a6d01354
commit
c367a885dc
1 changed files with 4 additions and 3 deletions
|
|
@ -562,7 +562,7 @@ static int esd_proto_get_latency(connection *c, esd_proto_t request, const void
|
|||
pa_sink *sink;
|
||||
int32_t latency;
|
||||
|
||||
connection_ref(c);
|
||||
connection_assert_ref(c);
|
||||
pa_assert(!data);
|
||||
pa_assert(length == 0);
|
||||
|
||||
|
|
@ -575,6 +575,7 @@ static int esd_proto_get_latency(connection *c, esd_proto_t request, const void
|
|||
|
||||
latency = PA_MAYBE_INT32_SWAP(c->swap_byte_order, latency);
|
||||
connection_write(c, &latency, sizeof(int32_t));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -583,7 +584,7 @@ static int esd_proto_server_info(connection *c, esd_proto_t request, const void
|
|||
int32_t response;
|
||||
pa_sink *sink;
|
||||
|
||||
connection_ref(c);
|
||||
connection_assert_ref(c);
|
||||
pa_assert(data);
|
||||
pa_assert(length == sizeof(int32_t));
|
||||
|
||||
|
|
@ -611,7 +612,7 @@ static int esd_proto_all_info(connection *c, esd_proto_t request, const void *da
|
|||
unsigned nsamples;
|
||||
char terminator[sizeof(int32_t)*6+ESD_NAME_MAX];
|
||||
|
||||
connection_ref(c);
|
||||
connection_assert_ref(c);
|
||||
pa_assert(data);
|
||||
pa_assert(length == sizeof(int32_t));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue