Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
531
Issue boards
Milestones
Wiki
Code
Merge requests
13
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
e6c46932
Commit
e6c46932
authored
9 years ago
by
Thomas Guillem
Browse files
Options
Downloads
Patches
Plain Diff
MediaBrowser: fix warnings
parent
060a5748
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libvlc/src/org/videolan/libvlc/util/MediaBrowser.java
+7
-10
7 additions, 10 deletions
libvlc/src/org/videolan/libvlc/util/MediaBrowser.java
with
7 additions
and
10 deletions
libvlc/src/org/videolan/libvlc/util/MediaBrowser.java
+
7
−
10
View file @
e6c46932
...
...
@@ -32,7 +32,7 @@ import org.videolan.libvlc.MediaList;
public
class
MediaBrowser
{
private
static
final
String
TAG
=
"LibVLC/util/MediaBrowser"
;
public
static
enum
Discover
{
public
enum
Discover
{
UPNP
(
"upnp"
),
SMB
(
"dsm"
)
;
...
...
@@ -63,19 +63,19 @@ public class MediaBrowser {
* @param index
* @param media
*/
public
void
onMediaAdded
(
int
index
,
Media
media
);
void
onMediaAdded
(
int
index
,
Media
media
);
/**
* Received when a media is removed (Happens only when you discover networks)
* @param index
* @param media Released media, but cached attributes are still
* available (like media.getMrl())
*/
public
void
onMediaRemoved
(
int
index
,
Media
media
);
void
onMediaRemoved
(
int
index
,
Media
media
);
/**
* Called when browse ended.
* It won't be called when you discover networks
*/
public
void
onBrowseEnd
();
void
onBrowseEnd
();
}
public
MediaBrowser
(
LibVLC
libvlc
,
EventListener
listener
)
{
...
...
@@ -229,11 +229,8 @@ public class MediaBrowser {
public
void
onEvent
(
MediaList
.
Event
event
)
{
if
(
mEventListener
==
null
)
return
;
final
MediaList
.
Event
mlEvent
=
(
MediaList
.
Event
)
event
;
final
MediaList
.
Event
mlEvent
=
event
;
/*
* We use an intermediate array here since more than one MediaDiscoverer can be used
*/
switch
(
mlEvent
.
type
)
{
case
MediaList
.
Event
.
ItemAdded
:
mEventListener
.
onMediaAdded
(
mlEvent
.
index
,
mlEvent
.
media
);
...
...
@@ -252,7 +249,7 @@ public class MediaBrowser {
public
void
onEvent
(
MediaList
.
Event
event
)
{
if
(
mEventListener
==
null
)
return
;
final
MediaList
.
Event
mlEvent
=
(
MediaList
.
Event
)
event
;
final
MediaList
.
Event
mlEvent
=
event
;
int
index
=
-
1
;
/*
...
...
@@ -291,4 +288,4 @@ public class MediaBrowser {
}
}
};
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment