Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
f56d5507
Commit
f56d5507
authored
Mar 21, 2008
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addMediaDescriptor refactored to addMedia
parent
709367d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
bindings/java/core/src/main/java/org/videolan/jvlc/MediaList.java
.../java/core/src/main/java/org/videolan/jvlc/MediaList.java
+2
-2
bindings/java/core/src/test/java/org/videolan/jvlc/MediaListTest.java
...a/core/src/test/java/org/videolan/jvlc/MediaListTest.java
+4
-4
No files found.
bindings/java/core/src/main/java/org/videolan/jvlc/MediaList.java
View file @
f56d5507
...
...
@@ -57,10 +57,10 @@ public class MediaList
public
void
addMedia
(
String
media
)
{
MediaDescriptor
descriptor
=
new
MediaDescriptor
(
jvlc
,
media
);
addMedia
Descriptor
(
descriptor
);
addMedia
(
descriptor
);
}
public
void
addMedia
Descriptor
(
MediaDescriptor
descriptor
)
public
void
addMedia
(
MediaDescriptor
descriptor
)
{
if
(
items
.
contains
(
descriptor
.
getMrl
()))
{
...
...
bindings/java/core/src/test/java/org/videolan/jvlc/MediaListTest.java
View file @
f56d5507
...
...
@@ -59,7 +59,7 @@ public class MediaListTest
Assert
.
assertEquals
(
1
,
mlist
.
itemsCount
());
mlist
.
addMedia
(
mrl
);
Assert
.
assertEquals
(
1
,
mlist
.
itemsCount
());
mlist
.
addMedia
Descriptor
(
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
.
addMedia
Descriptor
(
new
MediaDescriptor
(
jvlc
,
mrl
));
mlist
.
addMedia
(
new
MediaDescriptor
(
jvlc
,
mrl
));
mlist
.
removeMedia
(
0
);
Assert
.
assertEquals
(
0
,
mlist
.
itemsCount
());
mlist
.
addMedia
Descriptor
(
new
MediaDescriptor
(
jvlc
,
mrl
));
mlist
.
addMedia
(
new
MediaDescriptor
(
jvlc
,
mrl
));
mlist
.
removeMedia
(
mrl
);
Assert
.
assertEquals
(
0
,
mlist
.
itemsCount
());
mlist
.
addMedia
Descriptor
(
new
MediaDescriptor
(
jvlc
,
mrl
));
mlist
.
addMedia
(
new
MediaDescriptor
(
jvlc
,
mrl
));
mlist
.
removeMedia
(
new
MediaDescriptor
(
jvlc
,
mrl
));
Assert
.
assertEquals
(
0
,
mlist
.
itemsCount
());
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment