Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
9529ae4e
Commit
9529ae4e
authored
Jun 27, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test cases for bug #3812
parent
67bc4a20
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
test/libvlc/media_player.c
test/libvlc/media_player.c
+25
-0
No files found.
test/libvlc/media_player.c
View file @
9529ae4e
...
@@ -48,6 +48,31 @@ static void wait_paused(libvlc_media_player_t *mp)
...
@@ -48,6 +48,31 @@ static void wait_paused(libvlc_media_player_t *mp)
assert
(
state
==
libvlc_Paused
||
state
==
libvlc_Ended
);
assert
(
state
==
libvlc_Paused
||
state
==
libvlc_Ended
);
}
}
/* Test a bunch of A/V properties. This most does nothing since the current
* test file contains a dummy audio track. This is a smoke test. */
static
void
test_audio_video
(
libvlc_media_player_t
*
mp
)
{
bool
fs
=
libvlc_get_fullscreen
(
mp
);
libvlc_set_fullscreen
(
mp
,
true
);
assert
(
libvlc_get_fullscreen
(
mp
));
libvlc_set_fullscreen
(
mp
,
false
);
assert
(
!
libvlc_get_fullscreen
(
mp
));
libvlc_toggle_fullscreen
(
mp
);
assert
(
libvlc_get_fullscreen
(
mp
));
libvlc_toggle_fullscreen
(
mp
);
assert
(
!
libvlc_get_fullscreen
(
mp
));
libvlc_set_fullscreen
(
mp
,
fs
);
assert
(
libvlc_get_fullscreen
(
mp
)
==
fs
);
assert
(
libvlc_video_get_scale
(
mp
)
==
0
.);
/* default */
libvlc_video_set_scale
(
mp
,
0
.);
/* no-op */
libvlc_video_set_scale
(
mp
,
2
.
5
);
assert
(
libvlc_video_get_scale
(
mp
)
==
2
.
5
);
libvlc_video_set_scale
(
mp
,
0
.);
libvlc_video_set_scale
(
mp
,
0
.);
/* no-op */
assert
(
libvlc_video_get_scale
(
mp
)
==
0
.);
}
static
void
test_media_player_set_media
(
const
char
**
argv
,
int
argc
)
static
void
test_media_player_set_media
(
const
char
**
argv
,
int
argc
)
{
{
const
char
*
file
=
test_default_sample
;
const
char
*
file
=
test_default_sample
;
...
...
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