~ubuntu-branches/ubuntu/oneiric/bluez/oneiric

« back to all changes in this revision

Viewing changes to audio/media.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2011-08-01 16:07:29 UTC
  • mfrom: (1.1.35 upstream)
  • Revision ID: james.westby@ubuntu.com-20110801160729-s7bv7bh6u4o5vhlc
Tags: 4.96-0ubuntu1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
167
167
 
168
168
        switch (new_state) {
169
169
        case HEADSET_STATE_DISCONNECTED:
170
 
                media_endpoint_clear_configuration(endpoint);
 
170
                if (endpoint->transport &&
 
171
                        media_transport_get_dev(endpoint->transport) == dev) {
 
172
 
 
173
                        DBG("Clear endpoint %p", endpoint);
 
174
                        media_endpoint_clear_configuration(endpoint);
 
175
                }
171
176
                break;
172
177
        case HEADSET_STATE_CONNECTING:
173
178
                media_endpoint_set_configuration(endpoint, dev, NULL, 0,