[mythtv] Re: [mythtv-commits] mythtv commits

Kenneth Aafl°y lists at kenneth.aafloy.net
Sat Nov 27 20:21:53 UTC 2004


On Saturday 27 November 2004 21:03, Isaac Richards wrote:
> On Saturday 27 November 2004 02:47 pm, Kenneth Aafl°y wrote:
> > On Saturday 27 November 2004 20:40, mythtv at cvs.mythtv.org wrote:
> > > -----------------------------------------------------------------------
> > >-- -- - Changes committed by ijr on Sat Nov 27 19:35:39 2004
> > >
> > > Modified Files:
> > >    in mythtv/libs/libmythtv:
> > >         avformatdecoder.cpp
> > > Log Message:
> > > Check for avcodec passing in an invalid pointer.
> >
> > Should not this have been an assert?
>
> How is exiting due to the assert being hit any different than segfaulting?

An assert is a condition that the codepath below does not account for, a 
segfault is a condition that might have been caused by another codepath.

When was ignoring the error of a null pointer from a underlying library (which 
might have been caused by the user of the library) become a good thing to do?

Kenneth


More information about the mythtv-dev mailing list