[vlc-devel] libvlc_media_discoverer_new_from_name return case

Pierre d'Herbemont pdherbemont at free.fr
Mon Jun 28 00:34:15 CEST 2010


2010/6/26 Rémi Denis-Courmont <rem at videolan.org>:
> On Saturday 26 June 2010 22:23:17 Joel Blumen, you wrote:
>> Hi,
>>
>> I have been looking at a VLCAssert that is getting caught in VLCKit when
>> there is no internet connection. The cause appears to be
>> libvlc_media_discoverer_new_from_name( libvlc_instance_t * p_inst, const
>> char * psz_name) in media_discoverer.c which returns null when there is no
>> internet connection. I have not yet confirmed if it does this for every
>> name that it can receive.
>>
>> My question is this: Is this the intended behavior of this method to return
>> null when there is no internet, and therefore VLCKit/Lunettes should
>> handle the null generated due to lack of connectivity, or should this
>> still return an object anyways?
>
> That should return NULL if the media service failed to start. What that means
> will depend on the specific service.

In the case of VLCKit we could return some kind of Proxy object that
will eventually wait for network connectivity, and reattempt to reload
the service. As Remi said, we will have to manually handle the case
for the concerned media_discoverer.

Pierre.



More information about the vlc-devel mailing list