[vlma-devel] commit: Two little corrections in streamChannel class. (Adrien Maglo )

git version control git at videolan.org
Tue May 20 14:38:04 CEST 2008


vlma | branch: master | Adrien Maglo <magsoft at videolan.org> | Tue May 20 14:18:44 2008 +0200| [f1b24959d88f3ecfc18803d452c9541bf2d9ea47]

Two little corrections in streamChannel class.

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

 .../videolan/vlma/model/media/StreamChannel.java   |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlma-model/src/main/java/org/videolan/vlma/model/media/StreamChannel.java b/vlma-model/src/main/java/org/videolan/vlma/model/media/StreamChannel.java
index 22b2be3..178d546 100755
--- a/vlma-model/src/main/java/org/videolan/vlma/model/media/StreamChannel.java
+++ b/vlma-model/src/main/java/org/videolan/vlma/model/media/StreamChannel.java
@@ -48,7 +48,7 @@ public class StreamChannel extends AbstractMedia {
      * The constructor of the class
      */
     public StreamChannel() {
-        streamURL = "http://";
+        streamURL = "udp://@";
     }
 
     /**
@@ -140,7 +140,7 @@ public class StreamChannel extends AbstractMedia {
      */
     @Override
     public int hashCode() {
-        return name.hashCode();
+        return name.hashCode() + streamURL.hashCode();
     }
 
     public int compareTo(Media other) {



More information about the vlma-devel mailing list