Page 1 of 1

How to define my own function of libvlc

Posted: 20 May 2014 03:57
by Magicc
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

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 );
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?

Re: How to define my own function of libvlc

Posted: 20 May 2014 04:38
by RĂ©mi Denis-Courmont
You need to update the .sym file too.

Re: How to define my own function of libvlc

Posted: 20 May 2014 09:30
by Magicc
You need to update the .sym file too.
It works perfectly! Thank you very much.