Bug 2891 - "repeat 2" ignored if set late
: "repeat 2" ignored if set late
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: CLI
: 6.2.2
: PC Windows (legacy)
: P2 normal (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-01-29 17:04 UTC by Scott
Modified: 2009-09-08 09:32 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments
6.2.2 patch (802 bytes, patch)
2006-01-30 21:50 UTC, KDF
Details | Diff
6.5 patch using subscribe (2.06 KB, patch)
2006-02-01 21:50 UTC, KDF
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Scott 2006-01-29 17:04:20 UTC
As a playlist is getting near to ending, I sometimes think "ok, let's have that again", and I send a "repeat 2".

It gets ignored; apparently you have to specify repeat at the beginning of play, not near the end. Annoying.
Comment 1 KDF 2006-01-30 02:25:27 UTC
changing the repeat state, probably needs to reset playmodes and change playout-stop to playout-play.
Comment 2 KDF 2006-01-30 17:30:15 UTC
I'll take a look at this tonight.  I've assumed this was nto so much cli related, as command related.  I expect any repeat change is missed, but hopefully they all run through Control::Commands by now :)

It should just be a case of checking playmode and resetting (I hope)
Comment 3 KDF 2006-01-30 21:50:24 UTC
Created attachment 1115 [details]
6.2.2 patch

possible fix committed to trunk at 5979.  i've tested using the web ui.  Please update to the Jan 31 build and let us know if this works out.
I have an equivalent patch for 6.2.2 which I've attached for review.  I don't want to commit until 6.5 fix is conirmed.
Comment 4 KDF 2006-02-01 21:50:00 UTC
Created attachment 1122 [details]
6.5 patch using subscribe

This needs more testing but should and seems to be working using subscribe.  I guess turning the subscribe on and off isn't so much of an optimisation since it is global to all clients anyway.  It could just be started on init.  The callback checks to make sure that the requesting client is in a playout mode to at least narrow down the processing.  The routine calls the playout sub, instead of the client method so that sync groups are handled.
Comment 5 Fred 2006-02-06 16:51:13 UTC
kdf, did not see your patch until today, will have to try it...
Comment 6 Fred 2006-04-16 17:23:39 UTC
Works for me. Fixed?
Comment 7 KDF 2006-04-17 23:44:32 UTC
Fred, if the second patch works for you using the subscribe, feel free to merge.  The first patch is the best that can be done as far as 6.2.2, but that depends on approval.
Comment 8 Dan Sully 2006-04-21 18:07:27 UTC
What's the status on this? Can the 6.2.2 patch be applied?

Thanks.
Comment 9 KDF 2006-04-21 21:45:25 UTC
6.5 patch applied at change 7034
6.2.2 patch applied at change 7035

please update and verify.  reopen if there are issues.