Bug 2259 - Random Mix fails to stop on playlist "play" and "load" commands
: Random Mix fails to stop on playlist "play" and "load" commands
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Plugin
: 6.2.0
: PC All
: P2 normal (vote)
: ---
Assigned To: Max Spicer
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-10-05 10:41 UTC by KDF
Modified: 2009-09-08 09:25 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description KDF 2005-10-05 10:41:07 UTC
Show in log below, an alarm loading a pre-set playlist uses the playlist "load"
command.  This fails to stop random mode despite the changing of the playlist. I
could change this myself, but perhaps this was done for some specific reason.

log as follows:  

2005-10-05 10:29:00.1538 RandomPlay: received command stop
2005-10-05 10:29:00.1546 RandomPlay: while in mode: track, from SoftSqueeze
2005-10-05 10:29:00.1552  Returning array: stop () () () () () () ()
2005-10-05 10:29:00.1557  Executing command f0:5a:f4:24:93:98: mixer (volume)
(20) () () () () ()
2005-10-05 10:29:00.1568 RandomPlay: received command mixer volume 20
2005-10-05 10:29:00.1658 RandomPlay: while in mode: track, from SoftSqueeze
2005-10-05 10:29:00.1666  Returning array: mixer (volume) (20) () () () () ()
2005-10-05 10:29:00.1674  Executing command f0:5a:f4:24:93:98: power (1) () ()
() () () ()
2005-10-05 10:29:00.1680 RandomPlay: received command power 1
2005-10-05 10:29:00.1684 RandomPlay: while in mode: track, from SoftSqueeze
2005-10-05 10:29:00.1691  Returning array: power (1) () () () () () ()
2005-10-05 10:29:00.1842  Executing command f0:5a:f4:24:93:98: playlist (load)
(itunesplaylist:80%E2%80%99s%20Music) () () () () ()
2005-10-05 10:29:00.2985 RandomPlay: received command open
file:///D:/mp3/Misc/A-HA%20-%20(11)%20Take%20on%20me%20(Techno%20mix).mp3
2005-10-05 10:29:00.2992 RandomPlay: while in mode: track, from SoftSqueeze
2005-10-05 10:29:00.3110 RandomPlay: received command playlist load_done
2005-10-05 10:29:00.3116 RandomPlay: while in mode: track, from SoftSqueeze
2005-10-05 10:29:00.4394 RandomPlay: received command playlist load
itunesplaylist:80%E2%80%99s%20Music
2005-10-05 10:29:00.4400 RandomPlay: while in mode: track, from SoftSqueeze
2005-10-05 10:29:00.4408  Returning array: playlist (load)
(itunesplaylist:80%E2%80%99s%20Music) () () () () ()
2005-10-05 10:29:00.6305 RandomPlay: received command newsong
2005-10-05 10:29:00.6321 RandomPlay: while in mode: track, from SoftSqueeze
Comment 1 Max Spicer 2005-10-05 13:52:42 UTC
Random Mix should stop in any situation where the playlist is cleared or
replaced.  Tracks being added or deleted should not stop it.  From what you're
saying, I've missed a case where it should stop, so please feel free to fix
this.  I'm afraid I won't be able to do any more today, but will sort it
tomorrow if it still needs doing.
Comment 2 KDF 2005-10-05 13:59:30 UTC
I suppose then, that we should add "load", "play", "loadalbum", "playalbum"...

or perhaps just on "playlist clear" which, could be called from every one of
those case (except they currently just replicate the same set of code)

I just wanted to be sure you didn't have a particalar reason for continuing on
load or play. If you are ok with changes along those lines, I can certainly take
care of it
Comment 3 Max Spicer 2005-10-05 14:31:49 UTC
As long as the playlist can still be modified without stopping the mix, I'm
happy.  Thanks, kdf.  I really am going to bed now!
Comment 4 Max Spicer 2005-10-05 14:50:47 UTC
Just to clarify, I deliberately changed the plugin to allow the addition of
tracks or whole albums without interrupting the mix.  I'm a little bit nervous
about loadalbum, but I don't know what it does and unfortunately don't have the
time to check right now.  In addition, load often occurs when tracks are added
(doesn't it?), so that on its own shouldn't stop the mix.
Comment 5 KDF 2005-10-05 14:59:48 UTC
loadalbum and playalbum are old style group load (no play) and play (load and
start playing).  Both commands clear the playlist.  I'm not sure if anything
actually uses them any anymore, but best to be safe.  Anything that first clears
the playlist should be safe to consider as not adding to an existing playlist.
Comment 6 KDF 2005-10-05 20:15:01 UTC
committed to trunk at change 4558