[vlc-devel] commit: Do not export unimplemented functions ( Rémi Denis-Courmont )

Jean-Paul Saman jpsaman at gmail.com
Wed Jan 27 12:59:55 CET 2010


On Wed, Jan 27, 2010 at 11:44 AM, Rémi Denis-Courmont <remi at remlab.net> wrote:
>
> On Tue, 26 Jan 2010 11:23:01 +0100, Jean-Paul Saman <jpsaman at gmail.com>
> wrote:
>> static vlc_object_t *get_marquee_object( libvlc_media_player_t * p_mi )
>> {
>>     libvlc_exception_t e;
>>     libvlc_exception_init(&e);
>>     vout_thread_t * vout = GetVout( p_mi, &e );
>>     libvlc_exception_clear(&e);
>>     if( !vout )
>>         return NULL;
>>     vlc_object_t * object = vlc_object_find_name( vout, "marq",
> FIND_CHILD
>> );
>>     vlc_object_release(vout);
>>     return object;
>> }
>
> That code is buggy as hell, so I wouldn't take it as a reference. It fails
> if there is more than one marquee, which is possible even with a single
> video output. It also fails if the marquee filter is not yet fully
> initialized - with no sane way to wait for it to be ready.
>
>> There is one other way to solve this by moving the variable 'vbi-page'
>> in to vlc core. What is the recommended way?
>
> That's even worse. It would fail to account for multiple inputs.

So what is the excepted way of implementing this then? Is there a solution?

If there is no solution then the only alternative is to solve it in
the same way as the marquee does it until a better way is implemented
of sending/getting information from an vlc object.

Gtz
Jean-Paul Saman



More information about the vlc-devel mailing list