~noskcaj/ubuntu/saucy/sflphone/merge-1.2.3-2

« back to all changes in this revision

Viewing changes to gnome/src/codeclist.c

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2012-05-19 21:46:37 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20120519214637-la8rbrford5kj6m3
Tags: 1.1.0-1
* New upstream release 
  - Fixes "FTBFS with libccrtp-dev/2.0.2 from experimental" (Closes: #663282)
* NEW Maintainer: Debian VoIP Team - Thanks Francois for your work.
  - (Closes: #665789: O: sflphone -- SIP and IAX2 compatible VoIP phone)
* Added Build-Depends: libdbus-c++-bin
* Add gcc47-fixes.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
 
177
177
void codec_list_move_codec_up(guint codec_index, GQueue **q)
178
178
{
179
 
    DEBUG("Codec list Size: %i \n", codec_list_get_size());
 
179
    DEBUG("Codec list size: %i \n", codec_list_get_size());
180
180
 
181
181
    GQueue *tmp = *q;
182
182
 
190
190
 
191
191
void codec_list_move_codec_down(guint codec_index, GQueue **q)
192
192
{
193
 
 
194
 
    DEBUG("Codec list Size: %i \n", codec_list_get_size());
 
193
    DEBUG("Codec list size: %i \n", codec_list_get_size());
195
194
 
196
195
    GQueue *tmp = *q;
197
196
 
204
203
 
205
204
}
206
205
 
207
 
void codec_list_update_to_daemon(account_t *acc)
 
206
void codec_list_update_to_daemon(const account_t *acc)
208
207
{
209
208
    // Length of the codec list
210
209
    int length = g_queue_get_length(acc->codecs);
217
216
    int c = 0;
218
217
    int i;
219
218
 
220
 
    for (i = 0; i < length; i++) {
 
219
    for (i = 0; i < length; ++i) {
221
220
        codec_t* currentCodec = codec_list_get_nth(i, acc->codecs);
222
221
 
223
222
        if (currentCodec) {
240
239
 
241
240
    // Allocate NULL array at the end for Dbus
242
241
    codecList = (void*) g_realloc(codecList, (c + 1) * sizeof(void*));
243
 
    *(codecList+c) = NULL;
 
242
    *(codecList + c) = NULL;
244
243
 
245
244
    // call dbus function with array of strings
246
245
    dbus_set_active_audio_codec_list(codecList, acc->accountID);
247
246
 
248
247
    // Delete memory
249
248
    for (i = 0; i < c; i++)
250
 
        g_free((gchar*) *(codecList+i));
 
249
        g_free((gchar*) *(codecList + i) );
251
250
 
252
251
    g_free(codecList);
253
252
}