mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
stream: add a video adapter for video streams
The vidweo adapter is in passthrough but allows us to query the node for the formats, which then show up in pw-top.
This commit is contained in:
parent
e9b7667b55
commit
32421965c7
1 changed files with 2 additions and 1 deletions
|
|
@ -1940,7 +1940,8 @@ pw_stream_connect(struct pw_stream *stream,
|
||||||
pw_properties_set(props, "channelmix.normalize", "true");
|
pw_properties_set(props, "channelmix.normalize", "true");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (impl->media_type == SPA_MEDIA_TYPE_audio) {
|
if (impl->media_type == SPA_MEDIA_TYPE_audio ||
|
||||||
|
impl->media_type == SPA_MEDIA_TYPE_video) {
|
||||||
factory = pw_context_find_factory(impl->context, "adapter");
|
factory = pw_context_find_factory(impl->context, "adapter");
|
||||||
if (factory == NULL) {
|
if (factory == NULL) {
|
||||||
pw_log_error("%p: no adapter factory found", stream);
|
pw_log_error("%p: no adapter factory found", stream);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue