mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
protocol-native: don't remove all fds in clear
When we consumed all the buffer data, don't clear all the fds but only those that were already consumed in the message. It is possible that we already have fds for the next message and we don't want to discard those. Fixes some intermittend memory map errors.
This commit is contained in:
parent
0ac465854b
commit
9eb1633b02
2 changed files with 13 additions and 6 deletions
|
|
@ -199,8 +199,8 @@ static void debug_msg(const char *prefix, const struct pw_protocol_native_messag
|
|||
{
|
||||
struct spa_pod *pod;
|
||||
pw_logt_debug(mod_topic_connection,
|
||||
"%s: id:%d op:%d size:%d seq:%d", prefix,
|
||||
msg->id, msg->opcode, msg->size, msg->seq);
|
||||
"%s: id:%d op:%d size:%d seq:%d fds:%d", prefix,
|
||||
msg->id, msg->opcode, msg->size, msg->seq, msg->n_fds);
|
||||
|
||||
if ((pod = get_first_pod_from_data(msg->data, msg->size, 0)) != NULL)
|
||||
spa_debug_pod(0, NULL, pod);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue