~ubuntu-branches/ubuntu/saucy/mpd/saucy

« back to all changes in this revision

Viewing changes to src/queue_print.c

  • Committer: Bazaar Package Importer
  • Author(s): Angel Abad
  • Date: 2011-02-02 12:26:30 UTC
  • mfrom: (1.5.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20110202122630-bdyx8w4k94doz4fs
Tags: 0.16.1-1ubuntu1
* Merge from debian unstable. Remaining changes:
  - debian/control:
    + Don't build-depend on libmikmod2-dev (Debian bug #510675).
    + Move avahi-daemon from Suggests field to Recommends field.
  - debian/mpd.init.d:
    + Read mpd user from mpd.conf.
  - debian/control, debian/rules:
    + Add libmp3lame-dev to the build dependencies and enable lame.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2003-2009 The Music Player Daemon Project
 
2
 * Copyright (C) 2003-2010 The Music Player Daemon Project
3
3
 * http://www.musicpd.org
4
4
 *
5
5
 * This program is free software; you can redistribute it and/or modify
17
17
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
18
 */
19
19
 
 
20
#include "config.h"
20
21
#include "queue_print.h"
21
22
#include "queue.h"
22
23
#include "song.h"
23
24
#include "song_print.h"
24
25
#include "locate.h"
25
26
#include "client.h"
 
27
#include "mapper.h"
26
28
 
27
29
/**
28
30
 * Send detailed information about a range of songs in the queue to a
60
62
        assert(end <= queue_length(queue));
61
63
 
62
64
        for (unsigned i = start; i < end; ++i) {
63
 
                const struct song *song = queue_get(queue, i);
64
 
                char *uri = song_get_uri(song);
65
 
 
66
 
                client_printf(client, "%i:%s\n", i, uri);
67
 
                g_free(uri);
 
65
                client_printf(client, "%i:", i);
 
66
                song_print_uri(client, queue_get(queue, i));
68
67
        }
69
68
}
70
69