[vlc-devel] Re: Problem with an access_demux module
Laurent Aimar
fenrir at via.ecp.fr
Sat Jun 3 16:19:18 CEST 2006
Hi,
On Sat, Jun 03, 2006, Christophe D�maret wrote:
> p_sys->es = es_out_Add( p_demux->out, &p_sys->fmt );
> msg_Dbg( p_demux, "es_out_Add done, ex = %x (%d)", p_sys->es,
> p_sys->es);
>
> /* es_format_Init( &p_sys->fmt, VIDEO_ES, VLC_FOURCC('m','p','2','c')
> ); */
>
> /* For TS muxing, trying to make the TS muxer believe that i'm using a
> supported format.
> This should be OK as long as I don't try to decode it ! This is only
> for test purpose */
>
> es_format_Init( &p_sys->fmt, VIDEO_ES, VLC_FOURCC('M','J','P','G') );
>
I think your bug is here, you need to init p_sys->fmt before adding
the es (p_sys->es = es_out_Add() ).
(Otherwise, as fmt is not correct, vlc will throw away all your data ...)
Regards,
--
fenrir
--
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