~ubuntu-branches/ubuntu/wily/pan/wily

« back to all changes in this revision

Viewing changes to pan/tasks/encoder.cc

  • Committer: Package Import Robot
  • Author(s): Dominique Dumont
  • Date: 2012-05-04 10:16:19 UTC
  • mfrom: (1.1.8) (2.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20120504101619-olby8ip0u03ajwm8
Tags: 0.137-1
new upstream release (mostly bug fix)

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
 
48
48
Encoder :: Encoder (WorkerPool& pool):
49
49
  _worker_pool (pool),
50
 
  _gsourceid (-1)
 
50
  _gsourceid (-1),
 
51
  health(OK)
51
52
{}
52
53
 
53
54
 
118
119
{
119
120
 
120
121
  const int bufsz = 4096;
121
 
  char buf[bufsz], buf2[bufsz];
 
122
  char buf[bufsz];
122
123
  int cnt(1);
123
124
  crc32_t crc(0);
124
125
  struct stat sb;
125
126
  std::string s;
126
 
  FILE* outfile, * infile ;
127
127
  char cachename[4096];
128
128
  FILE * fp ;
129
129
  Article* tmp = article;
145
145
    {
146
146
      g_snprintf(buf,sizeof(buf),"%s.%d",basename.c_str(), cnt);
147
147
 
148
 
      int enc(YENC_ENCODED);
149
148
      std::ofstream out;
150
149
      std::ifstream in;
151
150