Bugzilla – Bug 4207
Less than 2 title formats in server settings breaks player title format strings
Last modified: 2008-12-18 11:11:39 UTC
This is with SlimServer Version: 6.5.0 - 9916 - Windows XP - EN - cp1252, Perl Version: 5.8.7 MSWin32-x86-multi-thread & MySQL Version: 5.0.22-community-nt. To reproduce: 1. From the web interface, go to Server Setting > Formatting > Title Format. 2. Remove all title formating strings, except for the first one. Click change. 3. Go to Player Settings > Basic Settings > Title Format. 4. The Formats drop down list is empty. The player UI just shows the track title. Adding a second title format string under server settings (even the same as the first one) fixes player UI. I think this is a bug. Shouldn't server settings allow just a single title format, thereby forcing all players to use the same title format with no choice? Thanks.
problem is due to this bit of code in setup: # hack around a race condition at startup if (!Slim::Utils::Prefs::getArrayMax($pref)) { return; }; unfortunately, while this was required in a previous version, this problem can be fixed by removing these lines as long as the more recent prefs handling negates the problems once caused by the 'race condition' mentioned. For the record, this bit of code was added back at change 682
cc'ing Dan
What was the race condition, exactly?
to be honest, I can't recall. I THINK it used to come up blank in server settings because of the prefs not being fully populated in time. However, that was over 2 years ago (change 682). I can't seem to get it to fail currently. Probably ok to get rid of it, but we'd want to keep an eye on the results.
Better sooner than later so we can get it into some nightlies before we ship.
ok, I'll have it in tonight.
in trunk at change 10201, 6.5.1 at change 10202 please reopen if there are any problems.
Works great for me. Thanks.