# HG changeset patch # User Tony Vroon # Date 1236170670 0 # Node ID ef9ddc81c51cd89e576cb989384085b96beb4736 # Parent 901cd268f0ca13bab38c58309e5a2f9fbc35d76a Patch from John Lindgren to support seeking whilst paused, Debian bug #517692. diff -r 901cd268f0ca -r ef9ddc81c51c src/audlegacy/playback.c --- 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); }