Opened 9 years ago

Closed 9 years ago

#10864 closed Patch - Bug Fix (Fixed)

[PATCH] libmyth: Avoid a divide by 0 exception in AudioOutputBase

Reported by: Lawrence Rust <lvr@…> Owned by: JYA
Priority: minor Milestone: unknown
Component: MythTV - Audio Output Version: Master Head
Severity: medium Keywords: divide zero exception
Cc: Ticket locked: no


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)

0001-libmyth-Avoid-a-divide-by-0-exception-in-AudioOutput.patch (2.0 KB) - added by Lawrence Rust <lvr@…> 9 years ago.

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by Lawrence Rust <lvr@…>

comment:1 Changed 9 years ago by JYA

Resolution: Fixed
Status: newclosed
Note: See TracTickets for help on using tickets.