mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-20 08:56:56 -05:00
remove some unused event and seqnum
This commit is contained in:
parent
1e600713a5
commit
8fbcb0fef1
9 changed files with 42 additions and 127 deletions
|
|
@ -126,8 +126,6 @@ core_event_done (void *object,
|
|||
PinosContext *this = proxy->context;
|
||||
|
||||
if (seq == 0) {
|
||||
pinos_core_do_sync (this->core_proxy, 1);
|
||||
} else if (seq == 1) {
|
||||
context_set_state (this, PINOS_CONTEXT_STATE_CONNECTED, NULL);
|
||||
}
|
||||
}
|
||||
|
|
@ -193,12 +191,6 @@ static const PinosModuleEvents module_events = {
|
|||
&module_event_info,
|
||||
};
|
||||
|
||||
static void
|
||||
node_event_done (void *object,
|
||||
uint32_t seq)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
node_event_info (void *object,
|
||||
PinosNodeInfo *info)
|
||||
|
|
@ -224,7 +216,6 @@ node_event_info (void *object,
|
|||
}
|
||||
|
||||
static const PinosNodeEvents node_events = {
|
||||
&node_event_done,
|
||||
&node_event_info
|
||||
};
|
||||
|
||||
|
|
@ -403,10 +394,8 @@ on_context_data (SpaSource *source,
|
|||
|
||||
demarshal = proxy->iface->events;
|
||||
if (demarshal[opcode]) {
|
||||
if (!demarshal[opcode] (proxy, message, size)) {
|
||||
if (!demarshal[opcode] (proxy, message, size))
|
||||
pinos_log_error ("context %p: invalid message received %u", this, opcode);
|
||||
spa_debug_pod (message);
|
||||
}
|
||||
} else
|
||||
pinos_log_error ("context %p: function %d not implemented", this, opcode);
|
||||
|
||||
|
|
@ -612,8 +601,10 @@ pinos_context_connect_fd (PinosContext *context,
|
|||
context->registry_proxy->implementation = ®istry_events;
|
||||
|
||||
pinos_core_do_get_registry (context->core_proxy,
|
||||
0,
|
||||
context->registry_proxy->id);
|
||||
|
||||
pinos_core_do_sync (context->core_proxy, 0);
|
||||
|
||||
return true;
|
||||
|
||||
no_registry:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue