[vlc-commits] VLCPlugin: remove unneeded getter usage
Jean-Baptiste Kempf
git at videolan.org
Thu Apr 24 14:10:27 CEST 2014
npapi-vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Apr 24 14:10:05 2014 +0200| [99869ceddf4b7fe5c3833074cac66ed0cb12c9fc] | committer: Jean-Baptiste Kempf
VLCPlugin: remove unneeded getter usage
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=99869ceddf4b7fe5c3833074cac66ed0cb12c9fc
---
npapi/vlcplugin_base.cpp | 2 +-
npapi/vlcplugin_base.h | 28 ++++++++++++++--------------
2 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/npapi/vlcplugin_base.cpp b/npapi/vlcplugin_base.cpp
index 9d99a7f..c240249 100644
--- a/npapi/vlcplugin_base.cpp
+++ b/npapi/vlcplugin_base.cpp
@@ -308,7 +308,7 @@ bool VlcPluginBase::player_has_vout()
{
bool r = false;
if( playlist_isplaying() )
- r = libvlc_media_player_has_vout(get_player().get_mp())!=0;
+ r = libvlc_media_player_has_vout(get_mp())!=0;
return r;
}
diff --git a/npapi/vlcplugin_base.h b/npapi/vlcplugin_base.h
index e44b76f..674997c 100644
--- a/npapi/vlcplugin_base.h
+++ b/npapi/vlcplugin_base.h
@@ -80,7 +80,7 @@ public:
{
libvlc_printerr("no mediaplayer");
}
- return get_player().get_mp();
+ return get_mp();
}
NPP getBrowser() { return p_browser; };
@@ -99,56 +99,56 @@ public:
void playlist_play()
{
- get_player().play();
+ play();
}
void playlist_play_item(int idx)
{
- get_player().play(idx);
+ play(idx);
}
void playlist_stop()
{
- get_player().stop();
+ stop();
}
void playlist_next()
{
- get_player().next();
+ next();
}
void playlist_prev()
{
- get_player().prev();
+ prev();
}
void playlist_pause()
{
- get_player().pause();
+ pause();
}
void playlist_togglePause()
{
- get_player().togglePause();
+ togglePause();
}
int playlist_isplaying()
{
- return get_player().is_playing();
+ return is_playing();
}
int playlist_add( const char * mrl)
{
- return get_player().add_item(mrl);
+ return add_item(mrl);
}
int playlist_add_extended_untrusted( const char *mrl, const char *,
int optc, const char **optv )
{
- return get_player().add_item(mrl, optc, optv);
+ return add_item(mrl, optc, optv);
}
int playlist_delete_item( int idx)
{
- return get_player().delete_item(idx);
+ return delete_item(idx);
}
void playlist_clear()
{
- get_player().clear_items() ;
+ clear_items() ;
}
int playlist_count()
{
- return get_player().items_count();
+ return items_count();
}
bool playlist_select(int);
More information about the vlc-commits
mailing list