Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLMC
Commits
f24add47
Commit
f24add47
authored
Apr 02, 2009
by
Christophe Courtaut
Browse files
Change setDrawable (deprecated) to spec functions
parent
a6791f7f
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/LibVLCpp/VLCMediaPlayer.cpp
View file @
f24add47
...
...
@@ -90,8 +90,12 @@ bool MediaPlayer::isSeekable()
return
(
res
==
1
);
}
void
MediaPlayer
::
setDrawable
(
int
h
a
nd
le
)
void
MediaPlayer
::
setDrawable
(
void
*
h
w
nd
)
{
libvlc_drawable_t
window
=
handle
;
libvlc_media_player_set_drawable
(
m_internalPtr
,
window
,
m_ex
);
libvlc_media_player_set_hwnd
(
m_internalPtr
,
hwnd
,
m_ex
);
}
void
MediaPlayer
::
setDrawable
(
uint32_t
drawable
)
{
libvlc_media_player_set_xwindow
(
m_internalPtr
,
drawable
,
m_ex
);
}
src/LibVLCpp/VLCMediaPlayer.h
View file @
f24add47
...
...
@@ -46,7 +46,8 @@ namespace LibVLCpp
void
takeSnapshot
(
char
*
outputFile
,
unsigned
int
width
,
unsigned
int
heigth
);
bool
isPlaying
();
bool
isSeekable
();
void
setDrawable
(
int
handle
);
void
setDrawable
(
void
*
hwnd
);
void
setDrawable
(
uint32_t
drawable
);
private:
Exception
m_ex
;
...
...
src/Media.cpp
View file @
f24add47
...
...
@@ -172,7 +172,7 @@ QImage& Media::getImage()
return
*
m_image
;
}
void
Media
::
setDrawable
(
int
handle
)
void
Media
::
setDrawable
(
WId
handle
)
{
m_vlcMediaPlayer
->
setDrawable
(
handle
);
m_vlcMediaPlayer
->
setDrawable
(
handle
);
}
src/Media.h
View file @
f24add47
...
...
@@ -71,7 +71,7 @@ public:
* When pre-launching is completed, a "mediaReady" signal will be fired.
*/
void
play
();
void
setDrawable
(
int
handle
);
void
setDrawable
(
WId
handle
);
private:
virtual
void
run
();
...
...
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