[mediahub3] fails to pause when a a2dp device gets disconnected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
media-hub (Ubuntu RTM) |
Fix Released
|
High
|
Ricardo Mendoza |
Bug Description
current build number: 240
device name: krillin
channel: ubuntu-
last update: 2015-02-19 14:56:04
version version: 240
version ubuntu: 20150218.1
version device: 20150216-fe747ac
version custom: 20150216-561-29-186
media-hub-3 from https:/
ii libmedia-
ii libmedia-
ii media-hub 3.0.0+15.
To reproduce:
1 - Start music-app and play a song;
2 - Connect to a valid a2dp device;
3 - Disconnect the a2dp device;
The expected behavior is for it to stop when the device gets disconnected (when the active sink change as a result of being removed).
Log of what happens:
PulseAudio event for sink with index 2 received.
PulseAudio event for sink with index 2 received.
PulseAudio event for sink with index 0 received.
PulseAudio sink details for sink.primary with index 0 is available:
Port: output-
Port: output-aux_digital
Port: output-
Port: output-
Port: output-earpiece
Port: output-fm_tx
Port: output-parking
Port: output-sco_carkit
Port: output-sco_headset
Port: output-speaker
Port: output-
Port: output-
Port: output-
PulseAudio event for sink with index 0 received.
PulseAudio sink details for sink.primary with index 0 is available:
Port: output-
Port: output-aux_digital
Port: output-
Port: output-
Port: output-earpiece
Port: output-fm_tx
Port: output-parking
Port: output-sco_carkit
Port: output-sco_headset
Port: output-speaker
Port: output-
Port: output-
Port: output-
PulseAudio event for sink with index 0 received.
PulseAudio event for sink with index 2 received.
PulseAudio sink details for sink.primary with index 0 is available:
Port: output-
Port: output-aux_digital
Port: output-
Port: output-
Port: output-earpiece
Port: output-fm_tx
Port: output-parking
Port: output-sco_carkit
Port: output-sco_headset
Port: output-speaker
Port: output-
Port: output-
Port: output-
Changed in media-hub (Ubuntu RTM): | |
assignee: | Thomas Voß (thomas-voss) → Ricardo Mendoza (ricmm) |
Changed in media-hub (Ubuntu RTM): | |
status: | Confirmed → In Progress |
Changed in media-hub (Ubuntu RTM): | |
status: | In Progress → Fix Committed |
Changed in media-hub (Ubuntu RTM): | |
status: | Fix Committed → Fix Released |
Looking at the code, it's not tracking the active sink as before, and it's expecting the a2dp device to be just a port of the main device (output- a2dp_headphones ), which doesn't really exist.