mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-08 13:30:08 -05:00
rework props with pod
This commit is contained in:
parent
f02f93cda9
commit
dbae2e3f96
25 changed files with 232 additions and 472 deletions
|
|
@ -34,7 +34,7 @@ static SpaResult
|
|||
setup_video_node (SpaNode *spa_node, PinosProperties *pinos_props) {
|
||||
SpaResult res;
|
||||
SpaProps *props;
|
||||
SpaPropValue value;
|
||||
// SpaPropValue value;
|
||||
const char *pattern;
|
||||
uint32_t pattern_int;
|
||||
|
||||
|
|
@ -49,15 +49,15 @@ setup_video_node (SpaNode *spa_node, PinosProperties *pinos_props) {
|
|||
return SPA_RESULT_ERROR;
|
||||
}
|
||||
|
||||
value.value = &pattern_int;
|
||||
value.size = sizeof(uint32_t);
|
||||
//// value.value = &pattern_int;
|
||||
// value.size = sizeof(uint32_t);
|
||||
|
||||
if ((res = spa_node_get_props (spa_node, &props)) != SPA_RESULT_OK) {
|
||||
pinos_log_debug ("spa_node_get_props failed: %d", res);
|
||||
return SPA_RESULT_ERROR;
|
||||
}
|
||||
|
||||
spa_props_set_value (props, spa_props_index_for_name (props, "pattern"), &value);
|
||||
// spa_props_set_value (props, spa_props_index_for_name (props, "pattern"), &value);
|
||||
|
||||
if ((res = spa_node_set_props (spa_node, props)) != SPA_RESULT_OK) {
|
||||
pinos_log_debug ("spa_node_set_props failed: %d", res);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue