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
0476f4d8
Commit
0476f4d8
authored
Feb 21, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup test cases
parent
b8753d4d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
bindings/cil/src/media.cs
bindings/cil/src/media.cs
+1
-1
bindings/cil/tests/testvlc.cs
bindings/cil/tests/testvlc.cs
+14
-7
No files found.
bindings/cil/src/media.cs
View file @
0476f4d8
...
@@ -124,7 +124,7 @@ namespace VideoLAN.LibVLC
...
@@ -124,7 +124,7 @@ namespace VideoLAN.LibVLC
/**
/**
* Duration of the media in microseconds. The precision of the result
* Duration of the media in microseconds. The precision of the result
* depends on the input stram protocol and file format. The value
* depends on the input stram protocol and file format. The value
* might be incorrect and unknown (VLC usually returns 0 then).
* might be incorrect and unknown (VLC usually returns 0
or -1
then).
*/
*/
public
long
Duration
public
long
Duration
{
{
...
...
bindings/cil/tests/testvlc.cs
View file @
0476f4d8
...
@@ -28,24 +28,31 @@ namespace VideoLAN.LibVLC.Test
...
@@ -28,24 +28,31 @@ namespace VideoLAN.LibVLC.Test
{
{
public
sealed
class
Test
public
sealed
class
Test
{
{
private
static
void
DumpMedia
(
Media
m
)
{
Console
.
WriteLine
(
"Media at {0}"
,
m
.
Location
);
Console
.
WriteLine
(
" duration: {0}µs"
,
m
.
Duration
);
Console
.
WriteLine
(
" preparsed: {0}"
,
m
.
IsPreparsed
);
}
public
static
int
Main
(
string
[]
args
)
public
static
int
Main
(
string
[]
args
)
{
{
string
[]
argv
=
new
string
[]{
string
[]
argv
=
new
string
[]{
"-v"
,
"-I"
,
"dummy"
,
"--plugin-path=../../modules"
"-v
v
"
,
"-I"
,
"dummy"
,
"--plugin-path=../../modules"
};
};
Console
.
WriteLine
(
"Running on
VLC {0} ({1})"
,
VLC
.
Version
,
Console
.
WriteLine
(
"Running on Lib
VLC {0} ({1})"
,
VLC
.
Version
,
VLC
.
ChangeSet
);
VLC
.
ChangeSet
);
Console
.
WriteLine
(
"Compiled with {0}
"
,
VLC
.
Compiler
);
Console
.
WriteLine
(
" (compiled with {0})
"
,
VLC
.
Compiler
);
VLC
vlc
=
new
VLC
(
argv
);
VLC
vlc
=
new
VLC
(
argv
);
Media
m
=
new
Media
(
vlc
,
"/dev/null"
);
Media
m
=
new
Media
(
vlc
,
"/dev/null"
);
DumpMedia
(
m
);
vlc
.
AddInterface
(
"qt4"
);
DumpMedia
((
Media
)
m
.
Clone
());
vlc
.
Run
();
m
.
Dispose
();
vlc
.
Dispose
();
vlc
.
Dispose
();
m
.
Dispose
();
return
0
;
return
0
;
}
}
};
};
...
...
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