Issue with libvlc_video_set_callbacks

This forum is about all development around libVLC.
fabsther
Blank Cone
Blank Cone
Posts: 13
Joined: 04 Jun 2015 16:32

Issue with libvlc_video_set_callbacks

Postby fabsther » 12 Jun 2015 11:27

I use this function :
https://www.videolan.org/developers/vlc ... 021d714bf0

I use it wrapped in C#.

The problem : I create 2 different instance of VLC, and also two different VLC Player , using two different VLc media.

Naturally I call libvlc_video_set_callbacks at start, setting up all I need.
At each time, calling libvlc_video_set_callbacks Stop activity from all previous callbakcs already set with libvlc_video_set_callbacks. If I achive to set them both at the almost exact same time it works fine, but it append 1 time over 4... I don't even need to play the second player to stop the first one, just setting up callbacks.
By the way, when i do that, the first player is still running, I still ear the sound and see the time moving...

What Can I do ?

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

Re: Issue with libvlc_video_set_callbacks

Postby Rémi Denis-Courmont » 12 Jun 2015 13:18

I would guess that your wrapper is buggy then,
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

fabsther
Blank Cone
Blank Cone
Posts: 13
Joined: 04 Jun 2015 16:32

Re: Issue with libvlc_video_set_callbacks

Postby fabsther » 11 Jul 2015 22:02

For anybody who could havce the same issue, I've just forgotten to pin in memory the callback, in the c# side. I assume that any new set of the callback using wrapping pin temporaly only the last callback used, than kto the marshaller.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 14 guests