Ticket #2688: fix.timestretch.patch

File fix.timestretch.patch, 1.4 KB (added by anonymous, 17 years ago)
  • mythtv/libs/libmythtv/NuppelVideoPlayer.cpp

     
    37903790    if (normal_speed && audioOutput)
    37913791    {
    37923792        audio_stretchfactor = play_speed;
     3793        bool disable = (play_speed < 0.99f) || (play_speed > 1.01f);
    37933794        if (decoder)
    37943795        {
    3795             bool disable = (play_speed < 0.99f) || (play_speed > 1.01f);
    37963796            VERBOSE(VB_PLAYBACK, LOC +
    37973797                    QString("Stretch Factor %1, %2 passthru ")
    37983798                    .arg(audio_stretchfactor)
    37993799                    .arg((disable) ? "disable" : "allow"));
    38003800            decoder->SetDisablePassThrough(disable);
    38013801        }
    3802         if (audioOutput)
     3802        if (audioOutput && disable)
    38033803        {
    38043804            audioOutput->SetStretchFactor(play_speed);
    38053805#ifdef USING_DIRECTX
  • mythtv/libs/libmyth/audiooutputbase.cpp

     
    144144    audio_bits = laudio_bits;
    145145    audio_samplerate = laudio_samplerate;
    146146    audio_passthru = laudio_passthru;
     147    if (audio_passthru)
     148    {
     149        audio_stretchfactor = 1.0;
     150    }
    147151    if (audio_bits != 8 && audio_bits != 16)
    148152    {
    149153        Error("AudioOutput only supports 8 or 16bit audio.");