summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2005-09-14 23:42:37 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2005-09-14 23:42:37 +0000
commit004757624bab4a312da75983992225d835b757b2 (patch)
tree7bf27de9009c94c6df0043aec899179d73857903
parentbc01750de3fc1abba2fa33e621975132d430f141 (diff)
downloadxine-lib-004757624bab4a312da75983992225d835b757b2.tar.gz
xine-lib-004757624bab4a312da75983992225d835b757b2.tar.bz2
fix the FPE due my last commit
CVS patchset: 7733 CVS date: 2005/09/14 23:42:37
-rw-r--r--src/xine-engine/audio_out.c6
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;