Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
libvlcpp
Commits
2cb7083c
Commit
2cb7083c
authored
Feb 25, 2015
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor main.cpp modifications
parent
44a0bc85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
test/main.cpp
test/main.cpp
+8
-4
No files found.
test/main.cpp
View file @
2cb7083c
...
...
@@ -11,6 +11,13 @@ int main(int ac, char** av)
return
1
;
}
auto
instance
=
VLC
::
Instance
(
0
,
nullptr
);
auto
audioFilters
=
instance
.
audioFilterList
();
for
(
const
auto
&
f
:
audioFilters
)
{
std
::
cout
<<
f
.
name
()
<<
std
::
endl
;
}
auto
media
=
VLC
::
Media
(
instance
,
av
[
1
],
VLC
::
Media
::
FromPath
);
auto
mp
=
VLC
::
MediaPlayer
(
media
);
auto
eventManager
=
mp
.
eventManager
();
...
...
@@ -19,9 +26,6 @@ int main(int ac, char** av)
});
mp
.
play
();
std
::
this_thread
::
sleep_for
(
std
::
chrono
::
seconds
(
2
0
)
);
std
::
this_thread
::
sleep_for
(
std
::
chrono
::
seconds
(
1
0
)
);
mp
.
stop
();
// This should not compile:
//VLC::Media m = *(media.get());
}
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