Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-k.b-one.net (mx-k.one.com [91.198.169.58])
	by mail9.b-one.net (Postfix) with ESMTP id EFFC1400107
	for <info@awaresystems.be>; Tue, 13 Jul 2010 16:51:20 +0200 (CEST)
Received: by mx-k.b-one.net (Postfix, from userid 106)
	id 9588332685; Tue, 13 Jul 2010 16:51:20 +0200 (CEST)
X-Virus-Scanned: by one.com
X-Spam-Flag: NO
X-Spam-Score: 0
X-Spam-Level: 
X-Spam-Status: No, score=0 tagged_above=0 required=4 tests=[none]
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144]) by
 mx-k.b-one.net (Postfix) with ESMTP id 3413724241FA for
 <info@awaresystems.be>; Tue, 13 Jul 2010 16:51:07 +0200 (CEST)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by
 lists.maptools.org (Postfix) with ESMTP id 4ED371D184BC1; Tue, 13 Jul 2010
 09:49:16 -0500 (EST)
Received: from fmmailgate02.web.de (fmmailgate02.web.de [217.72.192.227]) by
 lists.maptools.org (Postfix) with ESMTP id 3C73F1D184BC0 for
 <tiff@lists.maptools.org>; Tue, 13 Jul 2010 09:45:57 -0500 (EST)
Received: from smtp05.web.de  ( [172.20.4.166]) by fmmailgate02.web.de
 (Postfix) with ESMTP id AF9F316B8AB1D for <tiff@lists.maptools.org>; Tue, 13
 Jul 2010 16:45:56 +0200 (CEST)
Received: from [217.228.254.136] (helo=[172.16.99.2]) by smtp05.web.de with
 asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #4) id 1OYgk8-0007q2-00 for
 tiff@lists.maptools.org; Tue, 13 Jul 2010 16:45:56 +0200
Message-ID: <4C3C7C23.4090101@web.de>
Date: Tue, 13 Jul 2010 16:45:55 +0200
From: Eberhard Mattes <eberhard.mattes@web.de>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10)
 Gecko/20100623 Thunderbird/3.0.5
MIME-Version: 1.0
To: tiff@lists.maptools.org
X-Sender: eberhard.mattes@web.de
X-Provags-ID: V01U2FsdGVkX18WB0gWMgJhOGsC0N7rj9zN0MU/68cTDLO4V5vY
 giSI9pjuuh6n+Q1RRbIn7aFH2Gc5nTi1AiobgcixxBIkA665pG KIwTWRXvvoEAJ4LDJdMA==
Subject: [Tiff] TIFFGetConfiguredCODECs()
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
 <mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
 <mailto:tiff-request@lists.maptools.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

Why does the second loop of TIFFGetConfiguredCODECs() copy built-in CODECs
only if they implement a scheme that has already been handled by the first
loop?

I think

		if (!TIFFIsCODECConfigured(c->scheme)) {

would make more sense than:

		if (TIFFIsCODECConfigured(c->scheme)) {

That way, the second loop of TIFFGetConfiguredCODECs() would include built-in
CODECs only if they have not been overridden by registered CODECs.

Eberhard
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
