[vlc-devel] [Patch] Sending a signal when a vout is created/destroyed

Pierre d'Herbemont pdherbemont at gmail.com
Wed Jan 20 19:05:27 CET 2010



On Jan 20, 2010, at 18:31, Rafaël Carré <rafael.carre at gmail.com>  
wrote:

> Le 20/01/10 17:40, Pierre d'Herbemont a écrit :
>>
>>
>> On Jan 20, 2010, at 15:09, Rafaël Carré <rafael.carre at gmail.com> w 
>> rote:
>>
>>> On Wed, 20 Jan 2010 15:02:05 +0100
>>> Rémi Denis-Courmont <remi at remlab.net> wrote:
>>>
>>>>
>>>> On Wed, 20 Jan 2010 14:35:49 +0100, Hugo Beauzee-Luyssen
>>>> <beauze.h at gmail.com> wrote:
>>>>> I do agree that it should be none of libvlc's business. However,  
>>>>> in
>>>>> video.c you have :
>>>>>
>>>>> int height;
>>>>> vout_thread_t *p_vout = GetVout( p_mi, p_e );
>>>>> if( !p_vout ) return 0;
>>>>
>>>> That's a bug. It needs to be fixed, not worked around.
>>>> Getting the resolution of a video ES should only depend on the ES,
>>>> and it shouldn't assume that there is only one video track.
>>>
>>> I have a patch for getting a description of ES of a media (or
>>> media_player?), I must find some time to clean it up and send it  
>>> here
>>> before feature freeze.
>>
>> I would be interested to see that as well!
>
> Currently it relies on playing the media once with -- 
> sout="#description"
> so the info is copied into input_item_t->i_es/es
>
> Do you think the function should take a media or a media_player as  
> input ?

After preparsing one should be able to read input item's options field  
and retrieve ES description if I recall well.

This kind of info would be nice to have at the media level IMO.

Pierre.


More information about the vlc-devel mailing list