~ubuntu-branches/ubuntu/maverick/k3b/maverick

« back to all changes in this revision

Viewing changes to libk3b/projects/audiocd/k3baudionormalizejob.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2010-02-08 16:38:36 UTC
  • mfrom: (1.1.22 upstream) (2.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100208163836-3iiu9xef2yzmfbmi
Tags: 1.70.0~beta1+svn1087124-0ubuntu1
* Merge with Debian Unstable, remaining changes:
  - Do not add build-depend on libdvdread-dev
  - Keep Kubuntu VCS entries
  - Suggest, not recommend libk3b6-extracodecs
  - Keep conflicts/replaces on older k3b versions
  - Do not install unused scalable icons to save space
  - Keep kubuntu_02_kubuntu_restricted.diff
  - Keep kubuntu_03_no_missing_mp3_warn.diff
  - Disable 111_advice_debian_libk3b3-extracodes.diff, the above two patches
    take care of this for us (without string changes, too)
  - Disable 112_dont_require_mp3.diff, it causes the package to FTBFS
  - Keep Kubuntu l10n stuff in debian/rules
* New upstream svn snapshot:
  - Depend on polkit-kde-1 or policykit-1-gnome instead of
    kdebase-workspace-bin now that K3b Setup has been ported to KAuth which
    uses Polkit-1 (LP: #459058)
  - Remove dependency on libpolkit-qt-dev for the above
  - Drop 114_fix_ftbfs_kfreebsd.diff and 113_add_kfreebsd_support.diff,
    applied upstream
  - Update .install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
    connect( m_process, SIGNAL(stderrLine(const QString&)), this, SLOT(slotStdLine(const QString&)) );
51
51
    connect( m_process, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(slotProcessExited(int, QProcess::ExitStatus)) );
52
52
 
53
 
    const K3b::ExternalBin* bin = k3bcore->externalBinManager()->binObject( "normalize" );
 
53
    const K3b::ExternalBin* bin = k3bcore->externalBinManager()->binObject( "normalize-audio" );
54
54
 
55
55
    if( !bin ) {
56
 
        emit infoMessage( i18n("Could not find normalize executable."), MessageError );
 
56
        emit infoMessage( i18n("Could not find normalize-audio executable."), MessageError );
57
57
        jobFinished(false);
58
58
        return;
59
59
    }
80
80
    if( !m_process->start( KProcess::OnlyStderrChannel ) ) {
81
81
        // something went wrong when starting the program
82
82
        // it "should" be the executable
83
 
        kDebug() << "(K3b::AudioNormalizeJob) could not start normalize";
84
 
        emit infoMessage( i18n("Could not start normalize."), K3b::Job::MessageError );
 
83
        kDebug() << "(K3b::AudioNormalizeJob) could not start normalize-audio";
 
84
        emit infoMessage( i18n("Could not start normalize-audio."), K3b::Job::MessageError );
85
85
        jobFinished(false);
86
86
    }
87
87
}
104
104
 
105
105
    //  emit newSubTask( i18n("Normalizing track %1 of %2 (%3)",t,tt,m_files.at(t-1)) );
106
106
 
107
 
    emit debuggingOutput( "normalize", line );
 
107
    emit debuggingOutput( "normalize-audio", line );
108
108
 
109
109
    // wenn "% done" drin:
110
110
    //    wenn ein --% drin ist, so beginnt ein neuer track
183
183
            break;
184
184
        default:
185
185
            if( !m_canceled ) {
186
 
                emit infoMessage( i18n("%1 returned an unknown error (code %2).",QString("normalize"), exitCode),
 
186
                emit infoMessage( i18n("%1 returned an unknown error (code %2).",QString("normalize-audio"), exitCode),
187
187
                                  K3b::Job::MessageError );
188
188
                emit infoMessage( i18n("Please send me an email with the last output."), K3b::Job::MessageError );
189
189
                emit infoMessage( i18n("Error while normalizing tracks."), MessageError );