Error causes floating point exception in CAudioOutLinuxAlsa::_SetDeviceConfig()
"Nguyen, Khanh V" <[email protected]>
| Newsgroups | gmane.comp.multimedia.helix.devel,gmane.spam.detected |
|---|---|
| Message-ID | <AD75107ECAEC4949991FB357E775D5C5333B80DA@orsmsx502.amr.corp.intel.com> |
Hi, In the CAudioOutLinuxAlsa::_SetDeviceConfig() method, if there's an error before the snd_pcm_hw_params_get_period_size(hwparams, &period_size, 0) call, it will skip this call. When this call is skipped, period_size is zero. When the calculation for start_threshold started, a floating point exception is thrown because of a divide-by-zero problem. Could someone apply a quick patch for this? I currently don't have commit access. Thanks, --Khanh _______________________________________________ Helix-client-dev mailing list [email protected] http://lists.helixcommunity.org/mailman/listinfo/helix-client-dev