mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-01-02 13:00:08 +01:00
policy: correctly figure out if a stream is a capture stream
This commit is contained in:
parent
5de6364ae7
commit
5a57bf5f93
1 changed files with 1 additions and 1 deletions
|
|
@ -277,7 +277,7 @@ handle_client (WpPolicy *policy, WpEndpoint *ep)
|
|||
g_autofree gchar *role = NULL;
|
||||
|
||||
/* Detect if the client is doing capture or playback */
|
||||
is_capture = g_str_has_prefix (media_class, "Stream/Input");
|
||||
is_capture = (strstr (media_class, "Stream/Input") != NULL);
|
||||
is_persistent = g_str_has_prefix (media_class, "Persistent/");
|
||||
|
||||
/* Locate the target endpoint */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue