mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-14 06:59:57 -05:00
Handle error cases
Add a link state Add error quark Track the state of node we create and error when it is in error. Handle stream error states when negotiating Make the node error when a link is in error
This commit is contained in:
parent
6497c82a7d
commit
2bf322ee71
15 changed files with 422 additions and 71 deletions
|
|
@ -64,6 +64,30 @@ typedef enum {
|
|||
|
||||
const gchar * pinos_direction_as_string (PinosDirection direction);
|
||||
|
||||
/**
|
||||
* PinosLinkState:
|
||||
* @PINOS_LINK_STATE_ERROR: the link is in error
|
||||
* @PINOS_LINK_STATE_UNLINKED: the link is unlinked
|
||||
* @PINOS_LINK_STATE_INIT: the link is initialized
|
||||
* @PINOS_LINK_STATE_NEGOTIATING: the link is negotiating formats
|
||||
* @PINOS_LINK_STATE_ALLOCATING: the link is allocating buffers
|
||||
* @PINOS_LINK_STATE_PAUSED: the link is paused
|
||||
* @PINOS_LINK_STATE_RUNNING: the link is running
|
||||
*
|
||||
* The different link states
|
||||
*/
|
||||
typedef enum {
|
||||
PINOS_LINK_STATE_ERROR = -2,
|
||||
PINOS_LINK_STATE_UNLINKED = -1,
|
||||
PINOS_LINK_STATE_INIT = 0,
|
||||
PINOS_LINK_STATE_NEGOTIATING = 1,
|
||||
PINOS_LINK_STATE_ALLOCATING = 2,
|
||||
PINOS_LINK_STATE_PAUSED = 3,
|
||||
PINOS_LINK_STATE_RUNNING = 4,
|
||||
} PinosLinkState;
|
||||
|
||||
const gchar * pinos_link_state_as_string (PinosLinkState state);
|
||||
|
||||
#include <pinos/client/context.h>
|
||||
#include <pinos/client/properties.h>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue