mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-05 17:08:01 +02:00
m-standard-event-source: Add priority for new 'destroy-' local event types
This new event type have the same priority as the 'create-' one.
This commit is contained in:
parent
8da63d79af
commit
acc9092206
1 changed files with 4 additions and 2 deletions
|
|
@ -158,7 +158,8 @@ static gint
|
|||
get_default_event_priority (const gchar *event_type)
|
||||
{
|
||||
if (g_str_has_prefix(event_type, "select-") ||
|
||||
g_str_has_prefix(event_type, "create-"))
|
||||
g_str_has_prefix(event_type, "create-") ||
|
||||
g_str_has_prefix(event_type, "destroy-"))
|
||||
return 500;
|
||||
else if (!g_strcmp0 (event_type, "rescan-for-default-nodes"))
|
||||
return -490;
|
||||
|
|
@ -210,7 +211,8 @@ static gboolean
|
|||
is_it_local_event (const gchar *event_type)
|
||||
{
|
||||
if (g_str_has_prefix(event_type, "select-") ||
|
||||
g_str_has_prefix(event_type, "create-"))
|
||||
g_str_has_prefix(event_type, "create-") ||
|
||||
g_str_has_prefix(event_type, "destroy-"))
|
||||
return TRUE;
|
||||
|
||||
return FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue