~ubuntu-branches/ubuntu/raring/libcddb/raring

« back to all changes in this revision

Viewing changes to examples/do_display.c

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2010-01-17 18:24:43 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100117182443-lnkwqi0fvdc5c4jg
Tags: 1.3.2-0ubuntu1
* New upstream release.
 - Fix a crash on aqualung (LP: #316056)
* debian/control:
 - Build-depends on libcdio-dev (>= 0.76).
 - Add Section libs.
 - Use ${binary:Version} instead of ${Source-Version} substvar.
 - Add missing ${misc:Depends}.
 - Build-depends on debhelper (>= 5.0.0).
* debian/rules:
 - Update SONAME minor version.
 - Don't ignore error on distclean.
 - Use debian/compat instead of using export DH_COMPAT.
* debian/*.install:
 - Remove unused /usr/lib/include/* location.
* debian/libcddb2.postinst & libcddb2.postrm:
 - Remove, it's automatically handle by debhelper.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
    $Id: do_display.c,v 1.8 2005/07/09 08:25:10 airborne Exp $
 
2
    $Id: do_display.c,v 1.9 2006/10/15 06:50:15 airborne Exp $
3
3
 
4
4
    Copyright (C) 2003, 2004, 2005 Kris Verbeeck <airborne@advalvas.be>
5
5
 
76
76
        printf("  [%02d]", cddb_track_get_number(track));
77
77
 
78
78
        /* 5.b. The track artist name and title. */
79
 
        printf(" '%s' by %s", cddb_track_get_title(track), 
80
 
               cddb_track_get_artist(track));
 
79
        printf(" '%s'", cddb_track_get_title(track));
 
80
        s = cddb_track_get_artist(track);
 
81
        if (s) {
 
82
            printf(" by %s", s); 
 
83
        }
81
84
 
82
85
        /* 5.c. The track length. */
83
86
        length = cddb_track_get_length(track);
89
92
 
90
93
        /* 5.d. The extended track data. */
91
94
        s = cddb_track_get_ext_data(track);
92
 
        if (s && strlen(s) > 0) {
 
95
        if (s) {
93
96
            printf(" [%s]\n", s);
94
97
        } else {
95
98
            printf("\n");