Ticket #5283: mythtv_initialtimerstretch.1.patch
File mythtv_initialtimerstretch.1.patch, 958 bytes (added by , 16 years ago) |
---|
-
libs/libmyth/audiooutputbase.cpp
121 121 void AudioOutputBase::SetStretchFactorLocked(float laudio_stretchfactor) 122 122 { 123 123 effdspstretched = (int)((float)effdsp / laudio_stretchfactor); 124 if (audio_stretchfactor != laudio_stretchfactor) 124 if ((audio_stretchfactor != laudio_stretchfactor) || 125 (pSoundStretch == NULL)) 125 126 { 126 127 audio_stretchfactor = laudio_stretchfactor; 127 128 if (pSoundStretch) … … 374 376 375 377 if (redo_stretch) 376 378 { 377 float laudio_stretchfactor = audio_stretchfactor;378 379 delete pSoundStretch; 379 380 pSoundStretch = NULL; 380 audio_stretchfactor = 0.0f; 381 SetStretchFactorLocked(laudio_stretchfactor); 381 SetStretchFactorLocked(audio_stretchfactor); 382 382 } 383 383 else 384 384 {