mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-11 13:30:07 -05:00
stream: only set media.class when not set before
This commit is contained in:
parent
92c26fa124
commit
7c615f4e64
1 changed files with 5 additions and 3 deletions
|
|
@ -1381,9 +1381,11 @@ pw_stream_connect(struct pw_stream *stream,
|
|||
if (flags & PW_STREAM_FLAG_DONT_RECONNECT)
|
||||
pw_properties_set(stream->properties, PW_KEY_NODE_DONT_RECONNECT, "1");
|
||||
|
||||
pw_properties_setf(stream->properties, PW_KEY_MEDIA_CLASS, "Stream/%s/%s",
|
||||
direction == PW_DIRECTION_INPUT ? "Input" : "Output",
|
||||
get_media_class(impl));
|
||||
if ((pw_properties_get(stream->properties, PW_KEY_MEDIA_CLASS) == NULL)) {
|
||||
pw_properties_setf(stream->properties, PW_KEY_MEDIA_CLASS, "Stream/%s/%s",
|
||||
direction == PW_DIRECTION_INPUT ? "Input" : "Output",
|
||||
get_media_class(impl));
|
||||
}
|
||||
|
||||
if (stream->core == NULL) {
|
||||
stream->core = pw_context_connect(impl->context,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue