mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
Add audiotestsrc
Work on idle poll Move node state to the node interface so that we can actually get it in the sync case. Add enabled field to the poll event Work on audiotestsrc
This commit is contained in:
parent
52e45cf2a1
commit
7aa79a2a0d
24 changed files with 721 additions and 100 deletions
|
|
@ -227,9 +227,9 @@ spa_ffmpeg_dec_node_get_port_ids (SpaNode *node,
|
|||
if (node == NULL || node->handle == NULL)
|
||||
return SPA_RESULT_INVALID_ARGUMENTS;
|
||||
|
||||
if (n_input_ports > 0)
|
||||
if (n_input_ports > 0 && input_ids != NULL)
|
||||
input_ids[0] = 0;
|
||||
if (n_output_ports > 0)
|
||||
if (n_output_ports > 0 && output_ids != NULL)
|
||||
output_ids[0] = 1;
|
||||
|
||||
return SPA_RESULT_OK;
|
||||
|
|
@ -502,6 +502,7 @@ spa_ffmpeg_dec_node_port_push_event (SpaNode *node,
|
|||
static const SpaNode ffmpeg_dec_node = {
|
||||
NULL,
|
||||
sizeof (SpaNode),
|
||||
SPA_NODE_STATE_INIT,
|
||||
spa_ffmpeg_dec_node_get_props,
|
||||
spa_ffmpeg_dec_node_set_props,
|
||||
spa_ffmpeg_dec_node_send_command,
|
||||
|
|
|
|||
|
|
@ -227,9 +227,9 @@ spa_ffmpeg_enc_node_get_port_ids (SpaNode *node,
|
|||
if (node == NULL || node->handle == NULL)
|
||||
return SPA_RESULT_INVALID_ARGUMENTS;
|
||||
|
||||
if (n_input_ports > 0)
|
||||
if (n_input_ports > 0 && input_ids != NULL)
|
||||
input_ids[0] = 0;
|
||||
if (n_output_ports > 0)
|
||||
if (n_output_ports > 0 && output_ids != NULL)
|
||||
output_ids[0] = 1;
|
||||
|
||||
return SPA_RESULT_OK;
|
||||
|
|
@ -505,6 +505,7 @@ spa_ffmpeg_enc_node_port_push_event (SpaNode *node,
|
|||
static const SpaNode ffmpeg_enc_node = {
|
||||
NULL,
|
||||
sizeof (SpaNode),
|
||||
SPA_NODE_STATE_INIT,
|
||||
spa_ffmpeg_enc_node_get_props,
|
||||
spa_ffmpeg_enc_node_set_props,
|
||||
spa_ffmpeg_enc_node_send_command,
|
||||
|
|
@ -570,5 +571,7 @@ spa_ffmpeg_enc_init (SpaHandle *handle)
|
|||
this->state[OUTPUT_PORT_ID].info.flags = SPA_PORT_INFO_FLAG_NONE;
|
||||
this->state[OUTPUT_PORT_ID].status.flags = SPA_PORT_STATUS_FLAG_NONE;
|
||||
|
||||
this->node.state = SPA_NODE_STATE_CONFIGURE;
|
||||
|
||||
return SPA_RESULT_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue