PATCH: Song Change Plugin in standard distribution

Jorg Schuler <[email protected]>
Newsgroups gmane.comp.multimedia.xmms.devel
Message-ID <20040525145807.GA18022@hatarakibachi>
Dear xmms developers,

I'm not quite sure where to post my code (has been quite a while since
I have contributed to xmms). I hope it is all right to attach it here
in the hope that you find it useful and include it into the next version.

You may well be aware that the song_change plugin that comes along
with the standard installation is quite limited in its use. In
particular, it only allows to execute a command at the start of a new
track (or after the end of the current playlist). However, in order to
count playcounts, a command should be executed at the end of the
current track.

I have included song_change.c that is based on the CVS version I
downloaded on Sunday (May 16). It includes the following bugfixes and
enhancements:

BUGFIXES:

- If playlist ended and you started to play the last song once more,
  the specified start-song command was not executed.

- The start-song command was executed even if no song was playing
  (e.g. after the plugin was activated).

ENHANCEMENTS:

- Allow different commands for start-song and end-song
- Allow use of format strings in end-of-playlist command as well (not
  all format strings make sense, though)
- Added a list of available format strings to the configure window

Please let me know if there is anything else I should do to have these
changes included into the official release.

Hope to hear from you and cheers,


JCS.

_______________________________________________
xmms-devel mailing list
[email protected]
http://lists.xmms.org/mailman/listinfo/xmms-devel
song_change.c.diff.gz (application/octet-stream, 3.6 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.