Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
luyikei
VLMC
Commits
01f77c91
Commit
01f77c91
authored
Nov 12, 2009
by
Hugo Beauzee-Luyssen
Browse files
Using a safer method to wait for a vout to be ready
parent
6b0da608
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/LibVLCpp/VLCMediaPlayer.cpp
View file @
01f77c91
...
...
@@ -252,3 +252,10 @@ void MediaPlayer::nextFrame()
libvlc_media_player_next_frame
(
m_internalPtr
,
m_ex
);
CheckVlcppException
(
m_ex
);
}
bool
MediaPlayer
::
hasVout
()
{
bool
res
=
libvlc_media_player_has_vout
(
m_internalPtr
,
m_ex
);
CheckVlcppException
(
m_ex
);
return
res
;
}
src/LibVLCpp/VLCMediaPlayer.h
View file @
01f77c91
...
...
@@ -59,6 +59,7 @@ namespace LibVLCpp
int
getHeight
();
float
getFps
();
void
nextFrame
();
bool
hasVout
();
private:
static
void
callbacks
(
const
libvlc_event_t
*
event
,
void
*
self
);
...
...
src/Metadata/MetaDataWorker.cpp
View file @
01f77c91
...
...
@@ -81,7 +81,7 @@ void MetaDataWorker::getMetaData()
//Until we have a way of knowing when it is, both getWidth and getHeight method
//will trigger exception... so we shut it up.
LibVLCpp
::
Exception
::
setErrorCallback
(
LibVLCpp
::
Exception
::
silentExceptionHandler
);
while
(
m_mediaPlayer
->
getWidth
()
==
0
)
while
(
m_mediaPlayer
->
hasVout
()
==
false
)
SleepMS
(
1
);
//Ugly isn't it :)
LibVLCpp
::
Exception
::
setErrorCallback
(
NULL
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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