From 86d6043fbcad671df30fd93f5fc9fd39df014288 Mon Sep 17 00:00:00 2001 From: Seungbae Shin Date: Fri, 12 Aug 2016 21:46:52 +0900 Subject: [PATCH] Fix a seek regression in 1.0.26. https://github.com/erikd/libsndfile/commit/f29c0dc2091febb2df6198c38b1664c30c3ea77d Change-Id: I3db5517f49ac93d1390838625805b76532781ae5 --- packaging/libsndfile.spec | 2 +- src/sndfile.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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 : -- 2.7.4