~alivema4ever/ubuntu/trusty/smplayer/lp-1325330-fix

« back to all changes in this revision

Viewing changes to zlib-1.2.6/contrib/iostream3/test.cc

  • Committer: Package Import Robot
  • Author(s): Maia Kozheva, Maia Kozheva, Alessio Treglia
  • Date: 2012-04-14 12:01:57 UTC
  • mfrom: (20.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20120414120157-7yx90enjufwsc3fd
Tags: 0.8.0-1
[ Maia Kozheva ]
* New upstream release:
  - Changes since 0.7.1:
    + A toolbar editor has been added. Now it's possible to select the
      buttons and controls that want to appear in the toolbars.
    + New video filters: gradfun, blur and sharpen.
    + Now it's possible to change the GUI (default, mini, mpc) at runtime,
      no restart required.
    + sub files from opensubtitles should work again.
    + (Youtube) Recognize short urls (like this one:
      http://y2u.be/F5OcZBVPwOA)
    + Better support for chapters in video files.
    + Bug fix: remote m3u files work from the favorites menu or command line.
    + Internal changes in the single instance option (switch to 
      QtSingleApplication).
  - Fixes since 0.7.0:
    + SMPlayer took more than 10 seconds to show when running for the very
      first time.
    + The links to download subtitles from Opensubtitles were wrong.
    + SMPlayer crashed in the favorite editor when trying to select a file
      if the KDE open dialog was used.
  - Changes since 0.7.0:
    + By default the screenshots are saved in the user's pictures folder
      instead of the SMPlayer's config folder.
    + Now it's possible to change the opensubtitles server.
    + Youtube: seeking is slow with flv videos, so now flv videos have the
      lowest priority.
    + Youtube: now it's possible to search and download videos from youtube.
      This is provided by an external application (in linux you have to
      install an independent package: smtube).
* debian/copyright:
  - Rewrite according to DEP-5 specification.
* debian/control:
  - Depend on mplayer2 | mplayer. (Closes: #638279)
  - Update Standards-Version to 3.9.3.
* Remove debian/patches/handle_local_urls.diff, merged upstream.

[ Alessio Treglia ]
* Mention smplayer is also a front-end for MPlayer2.
* Fix small typo in the description.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Test program for gzifstream and gzofstream
 
3
 *
 
4
 * by Ludwig Schwardt <schwardt@sun.ac.za>
 
5
 * original version by Kevin Ruland <kevin@rodin.wustl.edu>
 
6
 */
 
7
 
 
8
#include "zfstream.h"
 
9
#include <iostream>      // for cout
 
10
 
 
11
int main() {
 
12
 
 
13
  gzofstream outf;
 
14
  gzifstream inf;
 
15
  char buf[80];
 
16
 
 
17
  outf.open("test1.txt.gz");
 
18
  outf << "The quick brown fox sidestepped the lazy canine\n"
 
19
       << 1.3 << "\nPlan " << 9 << std::endl;
 
20
  outf.close();
 
21
  std::cout << "Wrote the following message to 'test1.txt.gz' (check with zcat or zless):\n"
 
22
            << "The quick brown fox sidestepped the lazy canine\n"
 
23
            << 1.3 << "\nPlan " << 9 << std::endl;
 
24
 
 
25
  std::cout << "\nReading 'test1.txt.gz' (buffered) produces:\n";
 
26
  inf.open("test1.txt.gz");
 
27
  while (inf.getline(buf,80,'\n')) {
 
28
    std::cout << buf << "\t(" << inf.rdbuf()->in_avail() << " chars left in buffer)\n";
 
29
  }
 
30
  inf.close();
 
31
 
 
32
  outf.rdbuf()->pubsetbuf(0,0);
 
33
  outf.open("test2.txt.gz");
 
34
  outf << setcompression(Z_NO_COMPRESSION)
 
35
       << "The quick brown fox sidestepped the lazy canine\n"
 
36
       << 1.3 << "\nPlan " << 9 << std::endl;
 
37
  outf.close();
 
38
  std::cout << "\nWrote the same message to 'test2.txt.gz' in uncompressed form";
 
39
 
 
40
  std::cout << "\nReading 'test2.txt.gz' (unbuffered) produces:\n";
 
41
  inf.rdbuf()->pubsetbuf(0,0);
 
42
  inf.open("test2.txt.gz");
 
43
  while (inf.getline(buf,80,'\n')) {
 
44
    std::cout << buf << "\t(" << inf.rdbuf()->in_avail() << " chars left in buffer)\n";
 
45
  }
 
46
  inf.close();
 
47
 
 
48
  return 0;
 
49
 
 
50
}