[vlma-devel] commit: Handle changes of the size of the command queue. (Adrien Grand )

git version control git at videolan.org
Fri May 9 20:31:08 CEST 2008


vlma | branch: master | Adrien Grand <jpountz at videolan.org> | Tue May  6 11:40:58 2008 +0200| [8655afb4d32e6ab40e19321060adc4f9042e9f9b]

Handle changes of the size of the command queue.

> http://git.videolan.org/gitweb.cgi/vlma.git/?a=commit;h=8655afb4d32e6ab40e19321060adc4f9042e9f9b
---

 .../org/videolan/vlma/common/order/Command.java    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/core/src/main/java/org/videolan/vlma/common/order/Command.java b/core/src/main/java/org/videolan/vlma/common/order/Command.java
index 529b3e7..336e46b 100644
--- a/core/src/main/java/org/videolan/vlma/common/order/Command.java
+++ b/core/src/main/java/org/videolan/vlma/common/order/Command.java
@@ -50,7 +50,7 @@ public class Command implements Serializable {
 
     public static void add(Command command) {
         commands.addFirst(command);
-        if (commands.size() > VLMa.getInstance().getInt("vlma.ui.command.queue.size")) {
+        while (commands.size() > VLMa.getInstance().getInt("vlma.ui.command.queue.size")) {
             commands.removeLast();
         }
     }



More information about the vlma-devel mailing list