[vlc-devel] commit: Accelerated dvb loading time by exporting the demuxer type. ( Laurent Aimar )

Laurent Aimar fenrir at via.ecp.fr
Tue Oct 13 22:12:04 CEST 2009


Hi,

On Tue, Oct 13, 2009, git version control wrote:
> vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Fri Oct  9 20:44:19 2009 +0200| [94553652cb319deede2f04f2109ec287a2262fa8] | committer: Laurent Aimar 
> diff --git a/modules/access/dvb/access.c b/modules/access/dvb/access.c
> index 65ded2b..f88d27f 100644
> --- a/modules/access/dvb/access.c
> +++ b/modules/access/dvb/access.c
> @@ -421,6 +421,8 @@ static int Open( vlc_object_t *p_this )
>      else
>          p_sys->i_read_once = DVB_READ_ONCE_START;
>  
> +    free( p_access->psz_demux );
> +    p_access->psz_demux = strdup( "ts" );
 I have done it because, in the case of the dvb access, it is time critical.
By default, only the PID 0 is selected (the PAT), meaning that you receive
only 1 packet of 188 bytes every ~ 500 ms (it depends on the source).
 Forcing the right demuxer allows to act as soon as the first paquet is
received instead of accumulating enough data for the demuxer probe to
succeed (which is 3 * 204 for the TS demuxer...)
 Besides, with non optimal signal quality, the first few packets can be
corrupted and so preventing the right demuxer to be selected.

-- 
fenrir




More information about the vlc-devel mailing list