diff options
Diffstat (limited to 'avmedia/source')
-rw-r--r-- | avmedia/source/vlc/inc/wrapper/Player.hxx | 5 | ||||
-rw-r--r-- | avmedia/source/vlc/wrapper/Player.cxx | 18 |
2 files changed, 3 insertions, 20 deletions
diff --git a/avmedia/source/vlc/inc/wrapper/Player.hxx b/avmedia/source/vlc/inc/wrapper/Player.hxx index 740390080d63..84b064493d61 100644 --- a/avmedia/source/vlc/inc/wrapper/Player.hxx +++ b/avmedia/source/vlc/inc/wrapper/Player.hxx @@ -51,16 +51,13 @@ namespace wrapper void setWindow( intptr_t id ); - bool takeSnapshot(const rtl::OUString& file); + void takeSnapshot(const rtl::OUString& file); bool hasVout() const; void setScale( float factor ); void setVideoSize( unsigned width, unsigned height ); - unsigned getWidth() const; - unsigned getHeight() const; - operator libvlc_media_player_t*() { return mPlayer; diff --git a/avmedia/source/vlc/wrapper/Player.cxx b/avmedia/source/vlc/wrapper/Player.cxx index 44eed54fca8e..7eb33440e24d 100644 --- a/avmedia/source/vlc/wrapper/Player.cxx +++ b/avmedia/source/vlc/wrapper/Player.cxx @@ -180,20 +180,6 @@ namespace wrapper libvlc_video_set_scale( mPlayer, factor ); } - unsigned Player::getWidth() const - { - unsigned width, height; - libvlc_video_get_size( mPlayer, 0, &width, &height ); - return width; - } - - unsigned Player::getHeight() const - { - unsigned width, height; - libvlc_video_get_size( mPlayer, 0, &width, &height ); - return height; - } - void Player::setMouseHandling(bool flag) { libvlc_video_set_mouse_input( mPlayer, flag ); @@ -243,11 +229,11 @@ namespace wrapper #endif } - bool Player::takeSnapshot( const rtl::OUString& file ) + void Player::takeSnapshot( const rtl::OUString& file ) { rtl::OString dest; file.convertToString( &dest, RTL_TEXTENCODING_UTF8, 0 ); - return libvlc_video_take_snapshot( mPlayer, 0, dest.getStr(), 480, 360 ) == 0; + libvlc_video_take_snapshot( mPlayer, 0, dest.getStr(), 480, 360 ); } bool Player::hasVout() const |