~ubuntu-branches/ubuntu/gutsy/vorbis-tools/gutsy

« back to all changes in this revision

Viewing changes to ogg123/format.c

  • Committer: Bazaar Package Importer
  • Author(s): Jesus Climent
  • Date: 2005-04-10 09:22:24 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050410092224-xtukpa3qghghhjje
Tags: 1.0.1-1.3
* Authorized NMU.
* Modified alsa to mention alsa09 (although the device might be nowadays
  alsa, back, since alsa1.0 has been already released). (Closes: #258286)
* Modified the manpage/help message for vorbiscomment to make it a bit more
  userfiendly: Closes: #252531.
* Added oggdec to the long description field, so that it triggers apt-cache
  searches: Closes: #274894.
* Typos in manpages: Closes: #302150.
* Escaped dashes in manpage: Closes: #264365.
* Quiet option is actually with -Q, not -q (Closes: #211289) Reported
  upstream but patched for Debian.
* Change input.wav with inputfile, since we accept flac-formated files:
  Closes: #262509.
* Translation bits:
  * Updated translation hu.po: Closes: #272037.
  * French translation correction: Encodage -> Codage (Closes: #248431).
  * debian/rules: remove .gmo's to avoid clash with uploaded tarball.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 *                                                                  *
12
12
 ********************************************************************
13
13
 
14
 
 last mod: $Id: format.c,v 1.2 2001/12/19 02:52:53 volsung Exp $
 
14
 last mod: $Id: format.c,v 1.5 2003/01/12 20:19:22 volsung Exp $
15
15
 
16
16
 ********************************************************************/
17
17
 
20
20
 
21
21
#include "transport.h"
22
22
#include "format.h"
 
23
#include "i18n.h"
23
24
 
24
25
extern format_t oggvorbis_format;
25
 
 
26
 
format_t *formats[] = { &oggvorbis_format, NULL };
 
26
extern format_t speex_format;
 
27
 
 
28
#ifdef HAVE_LIBFLAC
 
29
extern format_t flac_format;
 
30
extern format_t oggflac_format;
 
31
#endif
 
32
 
 
33
#ifdef HAVE_LIBSPEEX
 
34
extern format_t speex_format;
 
35
#endif
 
36
 
 
37
format_t *formats[] = { 
 
38
#ifdef HAVE_LIBFLAC
 
39
                        &flac_format,
 
40
                        &oggflac_format,
 
41
#endif
 
42
#ifdef HAVE_LIBSPEEX
 
43
                        &speex_format,
 
44
#endif
 
45
                        &oggvorbis_format, 
 
46
                        NULL };
27
47
 
28
48
 
29
49
format_t *get_format_by_name (char *name)
55
75
  new_stats = malloc(sizeof(decoder_stats_t));
56
76
 
57
77
  if (new_stats == NULL) {
58
 
    fprintf(stderr, "Error: Could not allocate memory in malloc_decoder_stats()\n");
 
78
    fprintf(stderr, _("Error: Could not allocate memory in malloc_decoder_stats()\n"));
59
79
    exit(1);
60
80
  }
61
81