-
-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Store the registry as a struct pw_registry instead of a pw_proxy #1625
base: main
Are you sure you want to change the base?
Store the registry as a struct pw_registry instead of a pw_proxy #1625
Conversation
src/pipewire.c
Outdated
@@ -224,7 +229,7 @@ pipewire_remote_destroy (PipeWireRemote *remote) | |||
/* This check is a workaround for older PW versions */ | |||
if (remote->registry) | |||
spa_hook_remove (&remote->registry_listener); | |||
g_clear_pointer (&remote->registry, pw_proxy_destroy); | |||
g_clear_pointer (&remote->registry, pipewire_registry_destroy); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
g_clear_pointer (&remote->registry, pipewire_registry_destroy); | |
g_clear_pointer ((struct pw_proxy **)&remote->registry, pw_proxy_destroy); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ouch, I would have said I tried that and it didn't build, before adding the helper function. Thanks for suggesting that change. I made that change and I guess you can squash all commits before merging, right? or do you want me to merge them into one and force push?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cleaning the history and force pushing would be appreciated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course. Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the future: we also try to prefix the commit message with the area the code touches. In this case pipewire: ...
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't aware of that. Noted.
This is a better fix for flatpak#1611 and an improvement over flatpak#1624 as requested by @swick.
ec29ea9
to
ad138bc
Compare
Thanks, this LGTM. |
This is a better fix for #1611 and an improvement over #1624 as requested by @swick.