From c28d25b291d3caae3fd7bc80fd8ce5f2597f57d8 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Sun, 5 Feb 2006 19:18:28 +0000 Subject: [xine-devel] PATCH: crash in ao_change_settings when using framegrab audio by Chris Brien CVS patchset: 7878 CVS date: 2006/02/05 19:18:28 --- src/xine-engine/audio_out.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c index b6c7b7a4e..d04d045f8 100644 --- a/src/xine-engine/audio_out.c +++ b/src/xine-engine/audio_out.c @@ -17,7 +17,7 @@ * along with self program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_out.c,v 1.196 2006/02/05 19:09:18 miguelfreitas Exp $ + * $Id: audio_out.c,v 1.197 2006/02/05 19:18:28 miguelfreitas Exp $ * * 22-8-2001 James imported some useful AC3 sections from the previous alsa driver. * (c) 2001 Andy Lo A Foe @@ -1338,7 +1338,7 @@ static int ao_update_resample_factor(aos_t *this) { static int ao_change_settings(aos_t *this, uint32_t bits, uint32_t rate, int mode) { int output_sample_rate; - if(this->driver_open) + if(this->driver_open && !this->grab_only) this->driver->close(this->driver); this->driver_open = 0; -- cgit v1.2.3