[haiku-commits] Re: haiku: hrev43697 - in src: servers/media_addon servers/media kits/media

  • From: Urias McCullough <umccullough@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 28 Jan 2012 16:04:41 -0800

On Sat, Jan 28, 2012 at 3:46 PM, Fredrik Modèen <fredrik@xxxxxxxxx> wrote:
>> Maybe that's not what you were asking :)
> Yes and no :) didn't know what ASSERT did. In this case. If flavorID are
> not the same as testFlaavorID it will crach the media server :-)

Right - that's what it's supposed to do.

The question becomes: Why are they not the same, and is that a valid scenario?

If it's OK for them to be different, then the ASSERT() shouldn't be
here - but as Siarzhuk suggests, the original developer who added this
assertion decided that it they are supposed to ALWAYS be the same, and
if they are not, then something went wrong.

- Urias

Other related posts: