mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-17 07:00:03 -05:00
clean up types
This commit is contained in:
parent
d9a51b5d14
commit
acedfe71c0
64 changed files with 756 additions and 752 deletions
|
|
@ -40,9 +40,9 @@ setup_video_node (PinosCore *core, SpaNode *spa_node, PinosProperties *pinos_pro
|
|||
/* Retrieve pattern property */
|
||||
pattern = pinos_properties_get (pinos_props, "pattern");
|
||||
if (strcmp (pattern, "smpte-snow") == 0) {
|
||||
pattern_uri = SPA_PROPS__patternType ":smpte-snow";
|
||||
pattern_uri = SPA_TYPE_PROPS__patternType ":smpte-snow";
|
||||
} else if (strcmp (pattern, "snow") == 0) {
|
||||
pattern_uri = SPA_PROPS__patternType ":snow";
|
||||
pattern_uri = SPA_TYPE_PROPS__patternType ":snow";
|
||||
} else {
|
||||
pinos_log_debug ("Unrecognized pattern");
|
||||
return SPA_RESULT_ERROR;
|
||||
|
|
@ -53,7 +53,7 @@ setup_video_node (PinosCore *core, SpaNode *spa_node, PinosProperties *pinos_pro
|
|||
return SPA_RESULT_ERROR;
|
||||
}
|
||||
|
||||
if ((prop = spa_pod_object_find_prop (props, spa_id_map_get_id (core->uri.map, SPA_PROPS__patternType)))) {
|
||||
if ((prop = spa_pod_object_find_prop (props, spa_id_map_get_id (core->uri.map, SPA_TYPE_PROPS__patternType)))) {
|
||||
if (prop->body.value.type == SPA_POD_TYPE_URI)
|
||||
SPA_POD_VALUE (SpaPODURI, &prop->body.value) = spa_id_map_get_id (core->uri.map, pattern_uri);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ remove_item (PinosSpaMonitor *this, SpaMonitorItem *item)
|
|||
|
||||
static void
|
||||
on_monitor_event (SpaMonitor *monitor,
|
||||
SpaMonitorEvent *event,
|
||||
SpaEventMonitor *event,
|
||||
void *user_data)
|
||||
{
|
||||
PinosSpaMonitor *this = user_data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue