diff options
author | Minh Ngo <nlminhtl@gmail.com> | 2013-10-07 10:21:24 +0300 |
---|---|---|
committer | Minh Ngo <nlminhtl@gmail.com> | 2013-10-07 10:26:43 +0300 |
commit | 8de1f54e19b68194b79a642750b9d3a4c8707d7b (patch) | |
tree | a816171bdc4d9dafac4fc334910e67206865fb86 /avmedia/source | |
parent | 926fcc560b7a5dc45968ddeffbf8cf185eb6f1c6 (diff) |
Avmedia/VLC: Adding some todo
Change-Id: I5c01ae2f0e2109460aa332b31b524f855b87948a
Diffstat (limited to 'avmedia/source')
-rw-r--r-- | avmedia/source/vlc/wrapper/Instance.cxx | 4 | ||||
-rw-r--r-- | avmedia/source/vlc/wrapper/Player.cxx | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/avmedia/source/vlc/wrapper/Instance.cxx b/avmedia/source/vlc/wrapper/Instance.cxx index 4d117d68c6c0..a6a71d1120c1 100644 --- a/avmedia/source/vlc/wrapper/Instance.cxx +++ b/avmedia/source/vlc/wrapper/Instance.cxx @@ -38,6 +38,10 @@ namespace wrapper Instance::Instance( int argc, const char * const argv[] ) : mInstance( libvlc_new( argc, argv ) ) { + if ( mInstance == NULL) + { + //TODO: error + } } Instance::Instance( const Instance& other ) diff --git a/avmedia/source/vlc/wrapper/Player.cxx b/avmedia/source/vlc/wrapper/Player.cxx index 92348e28760b..d8608d804053 100644 --- a/avmedia/source/vlc/wrapper/Player.cxx +++ b/avmedia/source/vlc/wrapper/Player.cxx @@ -12,6 +12,7 @@ #include "Player.hxx" #include "Media.hxx" #include "SymbolLoader.hxx" + #include "Common.hxx" struct libvlc_media_t; @@ -50,6 +51,7 @@ namespace void ( *libvlc_video_set_scale ) ( libvlc_media_player_t *p_mi, float f_factor ); int ( *libvlc_video_get_size ) ( libvlc_media_player_t *p_mi, unsigned num, unsigned *px, unsigned *py ); + int ( *libvlc_video_get_track_count ) ( libvlc_media_player_t *p_mi ); } namespace avmedia @@ -87,7 +89,8 @@ namespace wrapper SYM_MAP( libvlc_video_set_mouse_input ), SYM_MAP( libvlc_media_player_retain ), SYM_MAP( libvlc_video_set_scale ), - SYM_MAP( libvlc_video_get_size ) + SYM_MAP( libvlc_video_get_size ), + SYM_MAP( libvlc_video_get_track_count ) }; return InitApiMap( VLC_PLAYER_API ); |