GNOME Bugzilla – Bug 581024
Move streams to the new default sink
Last modified: 2009-05-15 13:06:38 UTC
When changing the default sink, we should move all the streams to the new sink as well, otherwise it won't have an effect until we get to the next song/movie in most apps.
Created attachment 133737 [details] [review] gvc-set-default-output-instant.patch Original bug at: https://bugzilla.redhat.com/show_bug.cgi?id=489049
I would replace "const char *new_default_output" by a weak ref "GvcMixerStream *default_output", unless you have a reason to store the string, (and fix indent). I guess the patch works, I didn't try it. I don't think we need to bother about checking extension or bookkeeping operations. If you agree on all that, I could update it.
Sure, go for it. I'm still trying to do some other releases here...
I'd suggest printing the error messages if things don work. i.e. include pa_strerror(pa_context_errno(c)) in the g_warning()s. But otherwise the patch looks good to me!
Committed to master with the changes mentioned above. commit 97e1f672ce246ddbe339e20da7304a5f3ece1f00 Author: Bastien Nocera <hadess@hadess.net> Date: Fri May 15 14:01:52 2009 +0100 Bug 581024 – Move streams to the new default sink Automatically move existing streams on the old sink to the new one. Makes choosing the default sink instant-apply.