How to define my own function of libvlc

This forum is about all development around libVLC.
Magicc
New Cone
New Cone
Posts: 5
Joined: 20 May 2014 03:35

How to define my own function of libvlc

Postby Magicc » 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

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15272
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How to define my own function of libvlc

Postby Rémi Denis-Courmont » 20 May 2014 04:38

You need to update the .sym file too.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Magicc
New Cone
New Cone
Posts: 5
Joined: 20 May 2014 03:35

Re: How to define my own function of libvlc

Postby Magicc » 20 May 2014 09:30

You need to update the .sym file too.
It works perfectly! Thank you very much.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 25 guests