changeset 4831:ef9ddc81c51c

Patch from John Lindgren <john.lindgren@tds.net> to support seeking whilst paused, Debian bug #517692.
author Tony Vroon <chainsaw@gentoo.org>
date Wed, 04 Mar 2009 12:44:30 +0000
parents 901cd268f0ca
children fb89eae5492c
files src/audlegacy/playback.c
diffstat 1 files changed, 0 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/src/audlegacy/playback.c	Sun Mar 01 23:17:11 2009 -0600
+++ b/src/audlegacy/playback.c	Wed Mar 04 12:44:30 2009 +0000
@@ -439,33 +439,13 @@
 playback_seek(gint time)
 {
     InputPlayback *playback = get_current_input_playback();
-    gboolean restore_pause = FALSE;
-    gint l=0, r=0;
 
     g_return_if_fail(ip_data.playing);
     g_return_if_fail(playback != NULL);
 
-    /* FIXME WORKAROUND...that should work with all plugins
-     * mute the volume, start playback again, do the seek, then pause again
-     * -Patrick Sudowe 
-     */
-    if (ip_data.paused)
-    {
-        restore_pause = TRUE;
-        output_get_volume(&l, &r);
-        output_set_volume(0,0);
-        playback_pause();
-    }
-    
     plugin_set_current((Plugin *)(playback->plugin));
     playback->plugin->seek(playback, time);
     playback->set_pb_change(playback);
-    
-    if (restore_pause)
-    {
-        playback_pause();
-        output_set_volume(l, r);
-    }
 
     event_queue_timed(100, "playback seek", playback);
 }