linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] LinPhone 4.x plugin - Filter linkage issue


From: Ерохин Андрей
Subject: Re: [Linphone-developers] LinPhone 4.x plugin - Filter linkage issue
Date: Wed, 09 Aug 2017 12:07:03 +0300

Hello!

Each mediastream runs within it's own thread, so it's unsafe to link MSFilters 
from different mediastreams to each other directly.

In order to safely connect them, you may use ITC 
(mediastreamer2/src/otherfilters/itc.c).

04.08.2017, 21:51, "Martin Kastner" <address@hidden>:
> Hello -
>
> I'm trying to integrate a plugin that analyzes the information at the output 
> in the video/audio decoders.
> For that purpose I created a filter object the resides in the mediastream 
> structure - lets call it 'collector'.
>
> The collector has multiple inputs and one output.
> I am creating only a single collector that is fed by multiple decoders. The 
> resulting graph looks somewhat like this:
>
> rtp --> video decoder: output (0) +--> input (0) display
>                                                   |
>                                  output (1) +--> input (0)
>                                                                     |
>                                                                         + --> 
> collector
>                                                                     |
>                                  output (1) +--> input (1)
>                                                   |
> rtp --> audio decoder output (0) +--> input (0) soundcard
>
> (I hope the formatting prevails!)
>
> The mediastreamer initializes successfully, creates all the linkages, but 
> eventually crashes at random points unrelated to the MSfilter objects above.
> If I create separate collectors - one for each decoder output - the 
> mediastreamer works without issues.
>
> What am I missing here?
>
> Thanks for your insight.
> Regards,
> Martin
> _______________________________________________
> Linphone-developers mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/linphone-developers



reply via email to

[Prev in Thread] Current Thread [Next in Thread]