~ubuntu-branches/ubuntu/trusty/lv/trusty-proposed

« back to all changes in this revision

Viewing changes to src/stream.c

  • Committer: Package Import Robot
  • Author(s): HIGUCHI Daisuke (VDR dai)
  • Date: 2014-03-15 03:42:28 UTC
  • Revision ID: package-import@ubuntu.com-20140315034228-6lcwgjiug8rym3wc
Tags: 4.51-2.2
* Non-maintainer upload.
* debian/control, debian/rules, debian/compat: use dh9.
* debian/control
  - add Vcs-* tags.
  - add Homepage: tag.
  - add ${misc:Depends} to Depends:.
  - add xz-utils to Recommends:.
* debian/source/format: set 3.0 (quilt).
* debian/patches/*: rename from debian/patch* and add DEP-3 headers.
* debian/copyright: convert to DEP-5.
* debian/patches/fix-hyphen-used-as-minus-sign.diff: new file.
* debian/lv.doc-base: new file.
* bump up Standards-Version 3.9.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
 
44
44
private byte *gz_filter = "zcat";
45
45
private byte *bz2_filter = "bzcat";
 
46
private byte *lzma_filter = "lzcat";
 
47
private byte *xz_filter = "xzcat";
46
48
 
47
49
private stream_t *StreamAlloc()
48
50
{
75
77
      filter = gz_filter;
76
78
    else if( !strcmp( "bz2", exts ) || !strcmp( "BZ2", exts ) )
77
79
      filter = bz2_filter;
 
80
    else if ( !strcmp( "lzma", exts ) )
 
81
      filter = lzma_filter;
 
82
    else if ( !strcmp( "xz", exts ) )
 
83
      filter = xz_filter;
78
84
  }
79
85
  if( NULL != filter ){
80
86
    /*
81
 
     * zcat or bzcat
 
87
     * zcat, bzcat etc.
82
88
     */
83
89
    if( NULL == (st->fp = (FILE *)tmpfile()) )
84
90
      perror( "temporary file" ), exit( -1 );