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
b1f976cd
Commit
b1f976cd
authored
Jul 20, 2008
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jvlc tests: avoid a libvlc_media_player race condition
parent
adc653a9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
bindings/java/core/src/test/java/org/videolan/jvlc/internal/LibVlcMediaPlayerTest.java
...ava/org/videolan/jvlc/internal/LibVlcMediaPlayerTest.java
+3
-2
No files found.
bindings/java/core/src/test/java/org/videolan/jvlc/internal/LibVlcMedia
Instance
Test.java
→
bindings/java/core/src/test/java/org/videolan/jvlc/internal/LibVlcMedia
Player
Test.java
View file @
b1f976cd
...
...
@@ -35,7 +35,7 @@ import org.videolan.jvlc.internal.LibVlc.LibVlcMediaInstance;
import
org.videolan.jvlc.internal.LibVlc.libvlc_exception_t
;
public
class
LibVlcMedia
Instance
Test
public
class
LibVlcMedia
Player
Test
{
private
LibVlc
libvlc
=
LibVlc
.
SYNC_INSTANCE
;
...
...
@@ -127,11 +127,12 @@ public class LibVlcMediaInstanceTest
}
@Test
public
void
mediaInstanceStop2
()
public
void
mediaInstanceStop2
()
throws
Exception
{
LibVlcMediaDescriptor
md
=
libvlc
.
libvlc_media_new
(
libvlcInstance
,
mrl
,
exception
);
LibVlcMediaInstance
mi
=
libvlc
.
libvlc_media_player_new_from_media
(
md
,
exception
);
libvlc
.
libvlc_media_player_play
(
mi
,
exception
);
Thread
.
sleep
(
100
);
libvlc
.
libvlc_media_player_stop
(
mi
,
exception
);
Assert
.
assertEquals
(
0
,
exception
.
raised
);
}
...
...
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