handle_device_status_changed(dm, DEVICE_TYPE_BT_SCO,
name, dbus_message_get_path(s), detected);
} else if (pa_streq(property_name, "Playing")) {
+ pa_tz_device *device;
pa_log_info("SCO Playing : %d", value);
- if (value) {
- /* update BT band/nrec information */
- pa_tz_device *device;
- if ((device = _device_list_get_device(dm, DEVICE_TYPE_BT_SCO, NULL)) != NULL) {
+ if ((device = _device_list_get_device(dm, DEVICE_TYPE_BT_SCO, NULL)) != NULL) {
+ device->sco_opened = value;
+ if (value) {
+ /* update BT band/nrec information */
bool is_wide_band = false;
bool nrec = false;
pa_tz_device_sco_get_property(device, &is_wide_band, &nrec);