mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
types: work on types
Move static pod types to type system work on type info for types Move the event and command ids to an enum to make it easier to extend later.
This commit is contained in:
parent
fca3e1d85d
commit
805e3bb6c1
82 changed files with 812 additions and 924 deletions
|
|
@ -382,7 +382,7 @@ static void run_async_sink(struct data *data)
|
|||
int err;
|
||||
|
||||
{
|
||||
struct spa_command cmd = SPA_COMMAND_INIT(SPA_ID_COMMAND_NODE_Start);
|
||||
struct spa_command cmd = SPA_NODE_COMMAND_INIT(SPA_NODE_COMMAND_Start);
|
||||
if ((res = spa_node_send_command(data->source, &cmd)) < 0)
|
||||
printf("got source error %d\n", res);
|
||||
if ((res = spa_node_send_command(data->sink, &cmd)) < 0)
|
||||
|
|
@ -404,7 +404,7 @@ static void run_async_sink(struct data *data)
|
|||
}
|
||||
|
||||
{
|
||||
struct spa_command cmd = SPA_COMMAND_INIT(SPA_ID_COMMAND_NODE_Pause);
|
||||
struct spa_command cmd = SPA_NODE_COMMAND_INIT(SPA_NODE_COMMAND_Pause);
|
||||
if ((res = spa_node_send_command(data->sink, &cmd)) < 0)
|
||||
printf("got sink error %d\n", res);
|
||||
if ((res = spa_node_send_command(data->source, &cmd)) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue