mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-20 08:56:56 -05:00
improve error reporting
Move signals from core to the objects themselves Use per object info to track object signals Use periods in alsasink and source
This commit is contained in:
parent
fb69758251
commit
cae971e106
23 changed files with 573 additions and 384 deletions
|
|
@ -73,9 +73,6 @@ context_set_state (PinosContext *context,
|
|||
...)
|
||||
{
|
||||
if (context->state != state) {
|
||||
pinos_log_debug ("context %p: update state from %s -> %s", context,
|
||||
pinos_context_state_as_string (context->state),
|
||||
pinos_context_state_as_string (state));
|
||||
|
||||
if (context->error)
|
||||
free (context->error);
|
||||
|
|
@ -89,6 +86,10 @@ context_set_state (PinosContext *context,
|
|||
} else {
|
||||
context->error = NULL;
|
||||
}
|
||||
pinos_log_debug ("context %p: update state from %s -> %s (%s)", context,
|
||||
pinos_context_state_as_string (context->state),
|
||||
pinos_context_state_as_string (state),
|
||||
context->error);
|
||||
|
||||
context->state = state;
|
||||
pinos_signal_emit (&context->state_changed, context);
|
||||
|
|
@ -563,7 +564,7 @@ pinos_context_destroy (PinosContext *context)
|
|||
* Returns: %TRUE on success.
|
||||
*/
|
||||
bool
|
||||
pinos_context_connect (PinosContext *context)
|
||||
pinos_context_connect (PinosContext *context)
|
||||
{
|
||||
PinosContextImpl *impl = SPA_CONTAINER_OF (context, PinosContextImpl, this);
|
||||
struct sockaddr_un addr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue