[vlc-devel] commit: addMediaDescriptor refactored to addMedia (Filippo Carone )

git version control git at videolan.org
Fri Mar 21 15:21:29 CET 2008


vlc | branch: master | Filippo Carone <littlejohn at videolan.org> | Fri Mar 21 15:21:23 2008 +0100| [f56d550753a30c5bae8e44fef87b8986cc309ac2]

addMediaDescriptor refactored to addMedia

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

 .../src/main/java/org/videolan/jvlc/MediaList.java |    4 ++--
 .../test/java/org/videolan/jvlc/MediaListTest.java |    8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/bindings/java/core/src/main/java/org/videolan/jvlc/MediaList.java b/bindings/java/core/src/main/java/org/videolan/jvlc/MediaList.java
index 979222c..5477318 100644
--- a/bindings/java/core/src/main/java/org/videolan/jvlc/MediaList.java
+++ b/bindings/java/core/src/main/java/org/videolan/jvlc/MediaList.java
@@ -57,10 +57,10 @@ public class MediaList
     public void addMedia(String media)
     {
         MediaDescriptor descriptor = new MediaDescriptor(jvlc, media);
-        addMediaDescriptor(descriptor);
+        addMedia(descriptor);
     }
 
-    public void addMediaDescriptor(MediaDescriptor descriptor)
+    public void addMedia(MediaDescriptor descriptor)
     {
         if (items.contains(descriptor.getMrl()))
         {
diff --git a/bindings/java/core/src/test/java/org/videolan/jvlc/MediaListTest.java b/bindings/java/core/src/test/java/org/videolan/jvlc/MediaListTest.java
index 35cd1a9..7642226 100644
--- a/bindings/java/core/src/test/java/org/videolan/jvlc/MediaListTest.java
+++ b/bindings/java/core/src/test/java/org/videolan/jvlc/MediaListTest.java
@@ -59,7 +59,7 @@ public class MediaListTest
         Assert.assertEquals(1, mlist.itemsCount());
         mlist.addMedia(mrl);
         Assert.assertEquals(1, mlist.itemsCount());
-        mlist.addMediaDescriptor(new MediaDescriptor(jvlc, mrl));
+        mlist.addMedia(new MediaDescriptor(jvlc, mrl));
         Assert.assertEquals(1, mlist.itemsCount());
         mlist.addMedia("non-existing");
         Assert.assertEquals(2, mlist.itemsCount());
@@ -88,15 +88,15 @@ public class MediaListTest
         mlist.removeMedia(0);
         Assert.assertEquals(0, mlist.itemsCount());
         
-        mlist.addMediaDescriptor(new MediaDescriptor(jvlc, mrl));
+        mlist.addMedia(new MediaDescriptor(jvlc, mrl));
         mlist.removeMedia(0);
         Assert.assertEquals(0, mlist.itemsCount());
         
-        mlist.addMediaDescriptor(new MediaDescriptor(jvlc, mrl));
+        mlist.addMedia(new MediaDescriptor(jvlc, mrl));
         mlist.removeMedia(mrl);
         Assert.assertEquals(0, mlist.itemsCount());
         
-        mlist.addMediaDescriptor(new MediaDescriptor(jvlc, mrl));
+        mlist.addMedia(new MediaDescriptor(jvlc, mrl));
         mlist.removeMedia(new MediaDescriptor(jvlc, mrl));
         Assert.assertEquals(0, mlist.itemsCount());
     }




More information about the vlc-devel mailing list