Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 231338
Collapse All | Expand All

(-)k3b-1.0.5.orig/libk3b/jobs/k3bvideodvdtitletranscodingjob.cpp (-2 / +5 lines)
Lines 206-215 void K3bVideoDVDTitleTranscodingJob::sta Link Here
206
    *d->process << "--nice" << "19";
206
    *d->process << "--nice" << "19";
207
207
208
  // we only need 100 steps, but to make sure we use 150
208
  // we only need 100 steps, but to make sure we use 150
209
  int progressRate = ( int )m_dvd[m_titleNumber-1].playbackTime().totalFrames()/150;
210
  if ( progressRate < 1)
211
      progressRate = 1;
209
  if ( d->usedTranscodeBin->version.simplify() >= K3bVersion( 1, 1, 0 ) )
212
  if ( d->usedTranscodeBin->version.simplify() >= K3bVersion( 1, 1, 0 ) )
210
      *d->process << "--progress_meter" << "2" << "--progress_rate" << QString::number(m_dvd[m_titleNumber-1].playbackTime().totalFrames()/150);
213
      *d->process << "--progress_meter" << "2" << "--progress_rate" << QString::number(progressRate);
211
  else
214
  else
212
      *d->process << "--print_status" << QString::number(m_dvd[m_titleNumber-1].playbackTime().totalFrames()/150);
215
      *d->process << "--print_status" << QString::number(progressRate);
213
216
214
  // the input
217
  // the input
215
  *d->process << "-i" << m_dvd.device()->blockDeviceName();
218
  *d->process << "-i" << m_dvd.device()->blockDeviceName();

Return to bug 231338