cork-on-phone: Only cork (and subsequently uncork) streams that are not already corked.
authorColin Guthrie <cguthrie@mandriva.org>
Thu, 10 Mar 2011 11:11:51 +0000 (11:11 +0000)
committerColin Guthrie <cguthrie@mandriva.org>
Sat, 12 Mar 2011 13:09:00 +0000 (13:09 +0000)
commitdda564f50b55340ff4bfbaa8d6d6fc6427f764f4
tree15ac517ac00ca7ae3f253b63f7478b9e1c3ca958
parente2df84497629d61706c455ed2829db0bebb7e5a5
cork-on-phone: Only cork (and subsequently uncork) streams that are not already corked.

Although by "cork" I really mean "cork+mute" as that's what the module
does.

If e.g. Rhythmbox is paused when a phone call comes in, the current
stream state will be corked and thus we should not track it for future
uncorking when the phone call ends.

Likewise if the stream is just muted (manually) we will not take any
action either when the phone stream is seen first, nor when it
disappears.

Also add some additional debug messages.
src/modules/module-cork-music-on-phone.c