[vlc-devel] Re: mpga initialization patch

Markus Kern markus-kern at gmx.net
Sun Nov 14 18:26:53 CET 2004

On Sunday, November 14, 2004, 5:08:02 PM Gildas Bazin <gbazin at altern.org> wrote:

> 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.

Ah ok, that's bad. Would it be possible to call the packetizer once in
Open to get the information and then rewind everything?

Markus Kern

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