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

« back to all changes in this revision

Viewing changes to audio/control.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:
1045
1045
{
1046
1046
        struct audio_device *device = data;
1047
1047
        struct control *control = device->control;
1048
 
        DBusMessage *reply;
1049
1048
        int err;
1050
1049
 
1051
 
        reply = dbus_message_new_method_return(msg);
1052
 
        if (!reply)
1053
 
                return NULL;
1054
 
 
1055
1050
        if (control->state != AVCTP_STATE_CONNECTED)
1056
1051
                return btd_error_not_connected(msg);
1057
1052
 
1070
1065
{
1071
1066
        struct audio_device *device = data;
1072
1067
        struct control *control = device->control;
1073
 
        DBusMessage *reply;
1074
1068
        int err;
1075
1069
 
1076
 
        reply = dbus_message_new_method_return(msg);
1077
 
        if (!reply)
1078
 
                return NULL;
1079
 
 
1080
1070
        if (control->state != AVCTP_STATE_CONNECTED)
1081
1071
                return btd_error_not_connected(msg);
1082
1072