GNOME Bugzilla – Bug 680706
Segfault on directsoundsink when AC3 support is tested after the DirectSound buffer is created
Last modified: 2012-08-06 08:54:25 UTC
Created attachment 219741 [details] [review] Do not overwrite DS buffer when testing for AC3 support Right now, the gst_directsound_probe_supported_formats function overwrites the dsoundsink->pDSBSecondary variable, which is not a bad thing if it has not been used yet. Under some circumstances, though, this method can be called when the DS buffer is already created and in use. The attached patch uses a temporary variable to hold the test buffer, and leaves the sink's own buffer alone. This fixes a segfault in DS for me when playing some DVDs.
commit 417cbcf34f01f4d18c40094413143f483ad366f0 Author: Xavi Artigas <xartigas@fluendo.com> Date: Fri Jul 27 16:13:49 2012 +0200 directsoundsink: Do not overwrite the DS buffer when testing for AC3 support https://bugzilla.gnome.org/show_bug.cgi?id=680706