X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9fc0fe377b42853e23cb771a2d9a742b9c91a996..2356708db31b737c6eae53c2316b642aa5a2e68d:/utils/wxMMedia/sndaiff.cpp diff --git a/utils/wxMMedia/sndaiff.cpp b/utils/wxMMedia/sndaiff.cpp index c890726a53..19e67874c6 100644 --- a/utils/wxMMedia/sndaiff.cpp +++ b/utils/wxMMedia/sndaiff.cpp @@ -86,8 +86,6 @@ wxUint32 wxSndAiffCodec::PrepareToPlay() char tmp_buf[5]; wxString chunk_name; - m_istream->SeekI(0, wxFromStart); - wxSndFileCodec::m_mmerror = wxMMFILE_INVALID; READ_STRING(chunk_name, 4); @@ -127,6 +125,8 @@ wxUint32 wxSndAiffCodec::PrepareToPlay() wxSndFileCodec::m_mmerror = wxMMFILE_NOERROR; m_istream->SeekI(m_spos, wxFromStart); + wxSndFileCodec::m_fstate = wxSFILE_PREPARED_TO_PLAY; + return m_slen; }