[MPlayer-cvslog] CVS: main mplayer.c,1.928,1.929

Rich Felker dalias at aerifal.cx
Sat Apr 15 17:58:05 CEST 2006


On Sat, Apr 15, 2006 at 02:54:23PM +0200, Diego Biurrun wrote:
> On Sat, Apr 15, 2006 at 02:10:31PM +0300, Ivan Kalvachev wrote:
> > 2006/4/15, Reimar Döffinger CVS <syncmail at mplayerhq.hu>:
> > >
> > > Modified Files:
> > >         mplayer.c
> > > Log Message:
> > > do not try to load default.sub when it doesn't exist. Fixes bug #480.
> > >
> > > --- mplayer.c   14 Apr 2006 10:57:41 -0000      1.928
> > > +++ mplayer.c   15 Apr 2006 09:36:53 -0000      1.929
> > > @@ -3111,7 +3111,10 @@
> > >      free(tmp);
> > >      if (set_of_sub_size == 0)
> > >      {
> > > -        add_subtitles (mem_ptr=get_path("default.sub"), sh_video->fps, 1);
> > > +        struct stat st;
> > > +        mem_ptr = get_path("default.sub");
> > > +        if (stat(mem_ptr, &st) == 0)
> > > +            add_subtitles (mem_ptr, sh_video->fps, 0);
> > >      free(mem_ptr); // release the buffer created by get_path()
> > 
> > How about removing this default.sub relict?
> 
> Seconded.

Agree. Strongly.

Rich




More information about the MPlayer-cvslog mailing list