Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
a95520f9
Commit
a95520f9
authored
Jul 25, 2008
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jvlc: only log if the media player event is not handled
parent
415ada5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
bindings/java/core/src/main/java/org/videolan/jvlc/event/MediaPlayerCallback.java
...ain/java/org/videolan/jvlc/event/MediaPlayerCallback.java
+8
-1
No files found.
bindings/java/core/src/main/java/org/videolan/jvlc/event/MediaPlayerCallback.java
View file @
a95520f9
...
@@ -25,6 +25,8 @@
...
@@ -25,6 +25,8 @@
package
org.videolan.jvlc.event
;
package
org.videolan.jvlc.event
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.videolan.jvlc.MediaPlayer
;
import
org.videolan.jvlc.MediaPlayer
;
import
org.videolan.jvlc.internal.LibVlc
;
import
org.videolan.jvlc.internal.LibVlc
;
import
org.videolan.jvlc.internal.LibVlcEventType
;
import
org.videolan.jvlc.internal.LibVlcEventType
;
...
@@ -41,6 +43,11 @@ public class MediaPlayerCallback implements LibVlcCallback
...
@@ -41,6 +43,11 @@ public class MediaPlayerCallback implements LibVlcCallback
private
MediaPlayerListener
listener
;
private
MediaPlayerListener
listener
;
private
MediaPlayer
mediaInstance
;
private
MediaPlayer
mediaInstance
;
/**
* Logger.
*/
private
Logger
log
=
LoggerFactory
.
getLogger
(
MediaPlayerCallback
.
class
);
public
MediaPlayerCallback
(
MediaPlayer
mediaInstance
,
MediaPlayerListener
listener
)
public
MediaPlayerCallback
(
MediaPlayer
mediaInstance
,
MediaPlayerListener
listener
)
{
{
this
.
mediaInstance
=
mediaInstance
;
this
.
mediaInstance
=
mediaInstance
;
...
@@ -80,7 +87,7 @@ public class MediaPlayerCallback implements LibVlcCallback
...
@@ -80,7 +87,7 @@ public class MediaPlayerCallback implements LibVlcCallback
}
}
else
else
{
{
throw
new
RuntimeException
(
"Unsupported event error. Event id: "
+
libvlc_event
.
type
);
log
.
debug
(
"Unsupported event error. Event id: {}"
,
libvlc_event
.
type
);
}
}
}
}
}
}
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