]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxMMedia/sndfile.cpp
1. wxLoad/SaveFileSelector return "wxString" instead of "char *"
[wxWidgets.git] / utils / wxMMedia / sndfile.cpp
index 798969a6c9017eb3ab2cd8c52eae29b90b8a6e0e..a90c24e6ec06f049e95f9f861d70f299c5dbda78 100644 (file)
@@ -283,6 +283,8 @@ wxUint32 wxSndFileCodec::GetSize() const
 
 wxUint32 wxSndFileCodec::Available() const
 {
+  if (m_fstate == wxSFILE_STOPPED)
+    return 0;
   return m_fsize-m_fpos; 
 }