Opened 13 years ago
Closed 12 years ago
#10864 closed Patch - Bug Fix (Fixed)
[PATCH] libmyth: Avoid a divide by 0 exception in AudioOutputBase
Reported by: | Owned by: | JYA | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | MythTV - Audio Output | Version: | Master Head |
Severity: | medium | Keywords: | divide zero exception |
Cc: | Ticket locked: | no |
Description
If MythMusic starts when the default audio is ALSA and if the device is in use by another process then snd_pcm_open can fail. In this case AudioOutputBase::SetAudiotime? can cause a divide by 0 exception because this->effdsp is 0.
This patch checks the value of effdsp and avoids the division if it's 0.
This bug & patch are also applicable to fixes/0.2[45]
Attachments (1)
Change History (2)
Changed 13 years ago by
Attachment: | 0001-libmyth-Avoid-a-divide-by-0-exception-in-AudioOutput.patch added |
---|
comment:1 Changed 12 years ago by
Resolution: | → Fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Fixed in 84aac9d80f98a30d3cb68caf4827e9e92caedbc1