GNOME Bugzilla – Bug 603986
gstdshowvideosink not releasing the filter media event interface
Last modified: 2009-12-09 02:02:58 UTC
Created attachment 149259 [details] Fixed version of the cpp file. gstreamer/gst-plugins-bad/tree/sys/dshowvideosink/dshowvideosink.cpp does not release the filter_media_event interface inside gst_dshowvideosink_stop. Causes threads and memory to leak inside the application. Fixed file attached.
Can you provide a patch, and let me know if you've actually tested this version? The other changes (to the header file) were obviously untested.
Created attachment 149312 [details] Diff created by svn Diff created from OSSBuild branch.
The fix to release the filter_media_event interface has been tested in our download of the OSSBuild project. Simply pasting: if (sink->filter_media_event) { sink->filter_media_event->Release(); sink->filter_media_event = NULL; } into the end of 'dshowvideosink_stop (GstBaseSink * bsink)' fixes the issue. Apologies for the header file error - I manually added the header change to a downloaded version of your main trunk header file.
Thanks a lot. Committed.