[vlc-devel] Re: mpga initialization patch

Gildas Bazin gbazin at altern.org
Sun Nov 14 17:08:02 CET 2004


On Saturday 13 November 2004 19:52, Markus Kern wrote:
> 
> Hi,
> 
> I have attached a patch for mpga.c which moves some initialization
> code from Demux() to Open() so that es_out_Add() is called earlier and
> the "audio-es" input variable in turn gets updated before playback
> starts.
> 
> It is not clear to me why the initialization code was in Demux() in
> the first place so someone familiar with the code should check the
> patch in case I missed something.
> 

The reason is simply that p_sys->p_packetizer->fmt_out isn't set/known until 
the first data is packetized.

--
Gildas

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list