free old resources in DoLoad(), apparently fixes memory leaks with gstreamer 0.10 (patch 1598317)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1236,6 +1236,9 @@ bool wxGStreamerMediaBackend::DoLoad(const wxString& locstring)
|
||||
return false;
|
||||
}
|
||||
|
||||
// free current media resources
|
||||
gst_element_set_state (m_playbin, GST_STATE_NULL);
|
||||
|
||||
// Make sure the passed URI is valid and tell playbin to load it
|
||||
// non-file uris are encoded
|
||||
wxASSERT(gst_uri_protocol_is_valid("file"));
|
||||
|
Reference in New Issue
Block a user