How to define my own function of libvlc
Posted: 20 May 2014 03:57
May be this is a simple question but I still don't know how to do it.
I declaration my own function in libvlc_media_player.h
And I add my realization in video.c. make & make install
So, when I call my own function under qt environment, it return the error: undefined reference to `libvlc_media_player_set_video_filter'
But, when I nm vlc.so, I definitely find my function.
I try to try to change the function that original exist in libvlc such as libvlc_toggle_fullscreen to print hello worlds, it works.
Why is that happen. Can anybody help me?
I declaration my own function in libvlc_media_player.h
Code: Select all
LIBVLC_API void libvlc_media_player_set_video_filter( libvlc_media_player_t *p_mi, char *psz_name, int value, bool flag );
So, when I call my own function under qt environment, it return the error: undefined reference to `libvlc_media_player_set_video_filter'
But, when I nm vlc.so, I definitely find my function.
I try to try to change the function that original exist in libvlc such as libvlc_toggle_fullscreen to print hello worlds, it works.
Why is that happen. Can anybody help me?