diff options
-rw-r--r-- | src/xine-engine/audio_out.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c index 026b154d1..f7120d919 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.192 2005/09/11 22:07:48 miguelfreitas Exp $ + * $Id: audio_out.c,v 1.193 2005/09/14 23:42:37 miguelfreitas Exp $ * * 22-8-2001 James imported some useful AC3 sections from the previous alsa driver. * (c) 2001 Andy Lo A Foe <andy@alsaplayer.org> @@ -1291,6 +1291,10 @@ void xine_free_audio_frame (xine_audio_port_t *this_gen, xine_audio_frame_t *fra } static int ao_update_resample_factor(aos_t *this) { + + if( !this->driver_open ) + return 0; + switch (this->resample_conf) { case 1: /* force off */ this->do_resample = 0; |