mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
linux-pipewire: Remove unnecessary struct field
We don't actually need to restore the node id anymore, since this is handled by the screencast-portal.c code now. Remove the pipewire_node field, and just create the stream directly from the passed file descriptor now.
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
890ca94b0b
commit
5065e86bb9
@@ -53,7 +53,6 @@ struct format_info {
|
||||
};
|
||||
|
||||
struct _obs_pipewire_data {
|
||||
uint32_t pipewire_node;
|
||||
int pipewire_fd;
|
||||
|
||||
gs_texture_t *texture;
|
||||
@@ -805,7 +804,6 @@ obs_pipewire_data *obs_pipewire_create(int pipewire_fd, int pipewire_node,
|
||||
|
||||
obs_pw = bzalloc(sizeof(obs_pipewire_data));
|
||||
obs_pw->pipewire_fd = pipewire_fd;
|
||||
obs_pw->pipewire_node = pipewire_node;
|
||||
|
||||
init_format_info(obs_pw);
|
||||
|
||||
@@ -867,7 +865,7 @@ obs_pipewire_data *obs_pipewire_create(int pipewire_fd, int pipewire_node,
|
||||
}
|
||||
|
||||
pw_stream_connect(
|
||||
obs_pw->stream, PW_DIRECTION_INPUT, obs_pw->pipewire_node,
|
||||
obs_pw->stream, PW_DIRECTION_INPUT, pipewire_node,
|
||||
PW_STREAM_FLAG_AUTOCONNECT | PW_STREAM_FLAG_MAP_BUFFERS, params,
|
||||
n_params);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user