X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4d6306eb4da8cdac4b5dee9784959672c233eec8..f3033278722328d37b98406b45060a2a3b8b1877:/utils/wxMMedia/sndfile.cpp diff --git a/utils/wxMMedia/sndfile.cpp b/utils/wxMMedia/sndfile.cpp index 798969a6c9..a90c24e6ec 100644 --- a/utils/wxMMedia/sndfile.cpp +++ b/utils/wxMMedia/sndfile.cpp @@ -283,6 +283,8 @@ wxUint32 wxSndFileCodec::GetSize() const wxUint32 wxSndFileCodec::Available() const { + if (m_fstate == wxSFILE_STOPPED) + return 0; return m_fsize-m_fpos; }