Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
490b5fd0
Commit
490b5fd0
authored
Jul 14, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: add coverage for audio output and device functions
parent
b8258c78
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
test/libvlc/core.c
test/libvlc/core.c
+30
-0
No files found.
test/libvlc/core.c
View file @
490b5fd0
...
...
@@ -68,12 +68,42 @@ static void test_audiovideofilterlists (const char ** argv, int argc)
libvlc_release
(
vlc
);
}
static
void
test_audio_output
(
void
)
{
libvlc_instance_t
*
vlc
=
libvlc_new
(
0
,
NULL
);
assert
(
vlc
!=
NULL
);
libvlc_audio_output_t
*
mods
=
libvlc_audio_output_list_get
(
vlc
);
assert
(
mods
!=
NULL
);
puts
(
"Audio outputs:"
);
for
(
const
libvlc_audio_output_t
*
o
=
mods
;
o
!=
NULL
;
o
=
o
->
p_next
)
{
libvlc_audio_output_device_t
*
devs
;
printf
(
" %s: %s
\n
"
,
o
->
psz_name
,
o
->
psz_description
);
devs
=
libvlc_audio_output_device_list_get
(
vlc
,
o
->
psz_name
);
if
(
devs
==
NULL
)
continue
;
for
(
const
libvlc_audio_output_device_t
*
d
=
devs
;
d
!=
NULL
;
d
=
d
->
p_next
)
printf
(
" %s: %s
\n
"
,
d
->
psz_device
,
d
->
psz_description
);
libvlc_audio_output_device_list_release
(
devs
);
}
libvlc_audio_output_list_release
(
mods
);
libvlc_release
(
vlc
);
}
int
main
(
void
)
{
test_init
();
test_core
(
test_defaults_args
,
test_defaults_nargs
);
test_audiovideofilterlists
(
test_defaults_args
,
test_defaults_nargs
);
test_audio_output
();
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