mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-18 08:56:45 -05:00
jack: filter formats
filter jack formats in enum_formats Fix some crashes and cleanups
This commit is contained in:
parent
be7a06f9b0
commit
914fe5c2b7
3 changed files with 16 additions and 10 deletions
|
|
@ -447,10 +447,9 @@ static void make_node(struct data *data)
|
|||
{
|
||||
struct pw_properties *props;
|
||||
|
||||
props = pw_properties_new(
|
||||
"pipewire.target.node", data->path,
|
||||
"pipewire.autoconnect", "1",
|
||||
NULL);
|
||||
props = pw_properties_new("pipewire.autoconnect", "1", NULL);
|
||||
if (data->path)
|
||||
pw_properties_set(props, "pipewire.target.node", data->path);
|
||||
|
||||
data->node = pw_node_new(data->core, NULL, NULL, "SDL-sink", props, 0);
|
||||
data->impl_node = impl_node;
|
||||
|
|
|
|||
|
|
@ -63,8 +63,6 @@ static inline void init_type(struct type *type, struct spa_type_map *map)
|
|||
struct data {
|
||||
struct type type;
|
||||
|
||||
const char *path;
|
||||
|
||||
SDL_Renderer *renderer;
|
||||
SDL_Window *window;
|
||||
SDL_Texture *texture;
|
||||
|
|
@ -464,7 +462,6 @@ int main(int argc, char *argv[])
|
|||
data.running = true;
|
||||
data.core = pw_core_new(data.loop, NULL);
|
||||
data.t = pw_core_get_type(data.core);
|
||||
data.path = argc > 1 ? argv[1] : NULL;
|
||||
|
||||
pw_module_load(data.core, "libpipewire-module-spa-node-factory", NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue