Opened 16 years ago
Closed 15 years ago
#5566 closed defect (fixed)
uninitialization defects in mythmusic
Reported by: | Owned by: | Isaac Richards | |
---|---|---|---|
Priority: | trivial | Milestone: | unknown |
Component: | mythmusic | Version: | head |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
There are a few initialization defects in mythmusic. The attached patch fixes the ones that the static analysis tool can find.
Note that there are few class ctor and member function declaration changes to suppress warnings and remove unused parameters. But everything else should be mild.
Attachments (3)
Change History (10)
Changed 16 years ago by
Attachment: | mythmusic-uninit.patch added |
---|
comment:1 Changed 16 years ago by
Your changes to libvisualplugin{h,cpp} will break the libvisual visualizer. It supports more than one visualizer and the pluginName is the name of a visualizer plugin that it should switch to.
comment:2 Changed 16 years ago by
According to the compiler pluginName is never used in switchToPlugin(), so it is never used anywhere else. If this is an oversight, then my patch will cause no problems. If it is in there for future work, then I will gladly rework the patch.
comment:3 Changed 16 years ago by
Actually Daniel broke things in [17906] it's back to how it should be now. He must have thought you could rely on m_currentPlugin pointing to the correct plugin at start, it's just there to make it possible to test the libvisual plugins by iterating though the list of supported plugins it's not used in normal operation.
Changed 16 years ago by
Attachment: | mythmusic-uninit-ticket-5566.patch added |
---|
Same patch w/out the switchToPlugin() mangling
Changed 16 years ago by
Attachment: | mythmusic-uninit.2.patch added |
---|
some more classes with ctor initialization issues (especially Decoder classes)
comment:5 Changed 16 years ago by
Looking at the decoder initialisations, I'm wondering if it would be tidier to rationalise and move those variables into the parent Decoder class? While it is possible that a decoder doesn't use all of the vars, the sub-classes would be tidier if they only added variables that are unique to that particular device or format?
comment:6 Changed 16 years ago by
I agree. I am likely to go in that direction if no one commits this patch any time soon.
Tries to fix all of the initialization defects in mythmusic