[mythtv-commits] Ticket #9403: Mythmusic doesn't properly handle failure to open audio device
MythTV
noreply at mythtv.org
Thu Dec 23 14:10:35 UTC 2010
#9403: Mythmusic doesn't properly handle failure to open audio device
------------------------------------+-------------------------
Reporter: jyavenard | Owner: paulh
Type: Bug Report | Status: new
Priority: minor | Milestone: unknown
Component: Plugin - MythMusic | Version: Unspecified
Severity: medium | Keywords:
Ticket locked: 0 |
------------------------------------+-------------------------
mythmusic should handle properly when the audio device failed to be
opened.
Right now it just assumes that everything is always good.
the comment:
// TODO: Error checking that device is opened correctly!
(it has been there for almost 4 years :) )
This causes several issues later on from segfault to floating point
exception (such as requesting timecode when the samplerate is == 0).
When OpenAudio returns an error, no member of the class should ever be
called.
I have put some handling to prevent some of the issues, but those are
fixes for a situation that should never have occurred anyway.
--
Ticket URL: <http://code.mythtv.org/trac/ticket/9403>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list