changeset 3258:d899694663a7

in playback_stop, do not assume that get_written_time will be always > 0, some plugins do not write to output at all
author Giacomo Lozito <james@develia.org>
date Mon, 06 Aug 2007 12:38:23 +0200
parents 6374d66ee623
children b26dc3482ce7
files src/audacious/playback.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/playback.c	Sun Aug 05 20:14:53 2007 -0500
+++ b/src/audacious/playback.c	Mon Aug 06 12:38:23 2007 +0200
@@ -188,7 +188,8 @@
     {
         if (playback_get_paused() == TRUE)
         {
-            output_flush(get_written_time()); /* to avoid noise */
+            if (get_written_time() > 0)
+              output_flush(get_written_time()); /* to avoid noise */
             playback_pause();
         }
 
@@ -257,6 +258,8 @@
 gboolean
 playback_play_file(PlaylistEntry *entry)
 {
+    InputPlayback *playback;
+
     g_return_val_if_fail(entry != NULL, FALSE);
 
     if (!get_current_output_plugin()) {