[MPlayer-cvslog] CVS: main/libmpdemux demux_ogg.c,1.69,1.70

Joey Parrish joey at nicewarrior.org
Wed May 4 03:35:49 CEST 2005


On Wed, May 04, 2005 at 02:49:37AM +0200, Dominik 'Rathann' Mierzejewski wrote:
> On Monday, 02 May 2005 at 09:59, Reimar Döffinger CVS wrote:
> > @@ -756,6 +756,7 @@
> >    clear_sub = -1;
> >    s = demuxer->stream;
> >  
> > +  demuxer->priv =
> >    ogg_d = (ogg_demuxer_t*)calloc(1,sizeof(ogg_demuxer_t));
> >    sync = &ogg_d->sync;
> >    page = &ogg_d->page;
> 
> I haven't tried to compile this yet, but I'm pretty certain that this won't
> compile without an initial value and a semicolon. Surely you meant
> > +  demuxer->priv = ogg_d;
> didn't you?

The newline doesn't matter.  It is effectively the same as:
demuxer->priv = ogg_d = (ogg_demuxer_t*)calloc(1,sizeof(ogg_demuxer_t));

Both demuxer->priv and ogg_d will have the same value.

--Joey

-- 
Me: "Isn't Kennedy as real as Colonel Sanders?"
Chad: "... Which Kennedy?"




More information about the MPlayer-cvslog mailing list