Reinhard Tartler wrote:
Forwarding this rather old bugreport with patch. This patch is still
open for xine-ui 0.99.4. What do xine developers think about this patch?

Committed to CVS.

[...]

The "playlist first" and "playlist last" network control commands
are broken, they both toggle between the first and last entries in
the playlist.  Here is a fix.

--- network.c.~1~       2004-08-24 16:06:26.000000000 -0400
+++ network.c   2005-05-16 07:21:33.000000000 -0400
@@ -1919,12 +1919,7 @@
       else if((first = is_arg_contain(client_info, 1, "first")) || 
is_arg_contain(client_info, 1, "last")) {
if(gGui->playlist.num) {
-         int entry = gGui->playlist.cur;
- - if(entry)
-           entry = 0;
-         else
-           entry = gGui->playlist.num - 1;
+         int entry = first ? 0 : gGui->playlist.num - 1;
if(entry != gGui->playlist.cur) {
[...]

Cheers,
Hans-Dieter


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to