changeset 447:00f571260246 trunk

[svn] lets not output audio when paused. really.
author nenolod
date Mon, 16 Jan 2006 13:29:32 -0800
parents 61046bc4d0d6
children 15481b4017cc
files Plugins/Input/mpg123/layer3.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/mpg123/layer3.c	Mon Jan 16 13:24:54 2006 -0800
+++ b/Plugins/Input/mpg123/layer3.c	Mon Jan 16 13:29:32 2006 -0800
@@ -20,6 +20,7 @@
 #include <stdlib.h>
 #include <math.h>
 #include <glib.h>
+#include "libaudcore/playback.h"
 #include "audacious/output.h"
 #include "mpg123.h"
 #include "huffman.h"
@@ -1864,7 +1865,7 @@
             }
         }
 
-        if (mpg123_info->output_audio && mpg123_info->jump_to_time == -1) {
+        if (!bmp_playback_get_paused() && mpg123_info->output_audio && mpg123_info->jump_to_time == -1) {
             produce_audio(mpg123_ip.output->written_time(),
                           mpg123_cfg.resolution ==
                           16 ? FMT_S16_NE : FMT_U8,