And a small libsndfile error.
authorTaybin Rutkin <taybin@taybin.com>
Wed, 8 Mar 2006 22:23:23 +0000 (22:23 +0000)
committerTaybin Rutkin <taybin@taybin.com>
Wed, 8 Mar 2006 22:23:23 +0000 (22:23 +0000)
git-svn-id: svn://localhost/trunk/ardour2@361 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/sndfile_helpers.cc

index 64a05e47340de589ab0c4cdc48bb34ed2c9e53ad..4ea4a4b5b234b6ee7a8bbb90b16568d36652bd3c 100644 (file)
@@ -279,7 +279,7 @@ libsndfile:
 
        sf_info.format = 0; // libsndfile says to clear this before sf_open().
 
-       if ((sf = sf_open ((char*) path.c_str(), SFM_READ, &sf_info)) < 0) { 
+       if ((sf = sf_open ((char*) path.c_str(), SFM_READ, &sf_info)) == 0) { 
                return false;
        }