From: Seungbae Shin Date: Fri, 12 Aug 2016 12:46:52 +0000 (+0900) Subject: Fix a seek regression in 1.0.26. X-Git-Tag: accepted/tizen/3.0.m2/mobile/20170105.024752^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=86d6043fbcad671df30fd93f5fc9fd39df014288;p=platform%2Fupstream%2Flibsndfile.git Fix a seek regression in 1.0.26. https://github.com/erikd/libsndfile/commit/f29c0dc2091febb2df6198c38b1664c30c3ea77d Change-Id: I3db5517f49ac93d1390838625805b76532781ae5 --- diff --git a/packaging/libsndfile.spec b/packaging/libsndfile.spec index 5de68c4..fe466f5 100644 --- a/packaging/libsndfile.spec +++ b/packaging/libsndfile.spec @@ -1,6 +1,6 @@ Name: libsndfile Version: 1.0.26 -Release: 1 +Release: 2 License: LGPL-2.1+ Summary: C library for reading and writing sound files Group: Multimedia/Audio diff --git a/src/sndfile.c b/src/sndfile.c index cc74f97..3c077b0 100644 --- a/src/sndfile.c +++ b/src/sndfile.c @@ -3000,11 +3000,10 @@ psf_open_file (SF_PRIVATE *psf, SF_INFO *sfinfo) if (psf->file.mode == SFM_WRITE) { /* Zero out these fields. */ sfinfo->frames = 0 ; + sfinfo->sections = 0 ; + sfinfo->seekable = 0 ; } ; - sfinfo->sections = 0 ; - sfinfo->seekable = 0 ; - return (SNDFILE *) psf ; error_exit :