[mythtv-commits] Ticket #10864: [PATCH] libmyth: Avoid a divide by 0 exception in AudioOutputBase

MythTV noreply at mythtv.org
Tue Jun 26 14:45:01 UTC 2012


#10864: [PATCH] libmyth: Avoid a divide by 0 exception in AudioOutputBase
---------------------------------------+-----------------------------------
     Reporter:  Lawrence Rust <lvr@…>  |      Owner:  jyavenard
         Type:  Patch - Bug Fix        |     Status:  new
     Priority:  minor                  |  Milestone:  unknown
    Component:  MythTV - Audio Output  |    Version:  Master Head
     Severity:  medium                 |   Keywords:  divide zero exception
Ticket locked:  0                      |
---------------------------------------+-----------------------------------
 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]

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/10864>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list