]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxMMedia/mmfile.cpp
* Added a small wxHTTP description
[wxWidgets.git] / utils / wxMMedia / mmfile.cpp
index 47e31efe092d3a2b0b59c920c7d30c3a7794e6f7..b079b6b6a8e81a696a6896b4da27675f3c8bdbc9 100644 (file)
@@ -85,7 +85,7 @@ void wxMMediaFile::SetFile(wxInputStream& str, bool preload, bool seekable)
     m_o_temp = new wxOutputStream(streamb);
     m_i_temp = new wxInputStream(streamb);
 
-    m_o_temp->Write(is);
+    m_o_temp->Write(str);
     streamb->ResetBuffer();
   }
 }
@@ -116,7 +116,7 @@ void wxMMediaFile::CleanUpPrevious()
     if (m_ostream)
       m_ostream->Write(*m_i_temp);
 
-    delete m_i_temp->StreamBuffer();
+    delete (m_i_temp->InputStreamBuffer());
     delete m_i_temp;
     delete m_o_temp;