|
From: R. B. <ro...@pa...> - 2005-04-20 16:00:45
|
I've been thinking about the CD-DA hack to fill in titles for all playlist items. For now I took advantage of the existing generality: since this is case insensitive this allows up to 3 alternate CD plugins! One problem with the existing approach is that it's possible that there may be some non-trivial setup work that goes on for each stream open. If a CD has lots of tracks, and it is not uncommon for a CD to have say 13, then lots of extra work is done. Although the CD-DA plugins don't have that much in setup on an open, I'm not sure if one can say a stream open is fast for other plugins. And things may change in the CD-DA plugins; it is not documented in the CD plugin that the open should be kept quick to make the hack to get titles in the xine-ui (or other UI) playlist work fast. (This could be fixed with a addition of a comment, but...) Probably a more straightforward approach would be to add a field in the playlist for the title, so that when the initial playlist items are created that can just be filled in. One could contemplate other things in there too, like the time duration which is generally known for CDs, and may also be known for other kinds of playlist items. Michael Roitzsch writes: > I don't know why this is limited to the CD plugin. Maybe Daniel can remember. > However, you could just try removing the limit. I cannot think of anything > right now which this would break. > > Michael |