Wednesday, February 1. 2006Inside amaroK 1.4: Collection ScannerTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
hi markey,
nice idea with collectionscanner and controller, which creates the possibility to continue where amarok hit a damaged file everytime i think i understand how application development works, you devs bring in a "new trick". thanks for this bye Andreas
heho , as youre currently working on the collection scanner , can you make it work with kio-slaves ? =)
Are you actively fixing those TagLib crashes though? When things crash on bad input they are either trusting the input too much or making dangerous assumptions. This could be exploited in any number of ways...
Maybe one could go the extra mile and make the scanner process run with reduced privileges when possible. Is there a way to drop the right to ever open a file for writing or to open a socket?
This couldn't prevent exploits completely (after all, the scanner process still has to communicate with the main amaroK process), but it would require additional vulnerabilities in amaroK proper or somewhere else in the system, thus making attacks more difficult.
I'm just curious about AmaroK's architecture: is the code that plays audio files part of the same thread as that which handles the GUI? I've noticed many times my audio will 'skip' when I use the GUI too much. It seems to me that these two should be separate threads or processes, and that the audio player should be given realtime priority while the GUI is given regular or less priority.
Audio pipelines are generally executed in a separate thread. So, if you experience skipping, you must have fairly bad audio drivers. Or, a too small alsa device buffer. There is an entry in our FAQ that describes how to increase this buffer (which is by default too small for desktop use).
Generally, xine-engine has proved to be the least prone to skipping, so you probably want to use it.
Good to hear that amamroK-1.4 will be more crash-safe. I can't wait to see it released!
|
Amarok LinksCalendarQuicksearchArchivesCategoriesBlog Administration |