# HG changeset patch # User William Pitcock # Date 1185408653 18000 # Node ID ee8a1ed308268f5f22c75226ca89b1714fbc6260 # Parent 49c25e9ecf6d31ac3c2427900daf6935796121df playback_seek(): several WTFs in here (probably from XMMS) fixed diff -r 49c25e9ecf6d -r ee8a1ed30826 src/audacious/playback.c --- a/src/audacious/playback.c Wed Jul 25 16:28:54 2007 -0500 +++ b/src/audacious/playback.c Wed Jul 25 19:10:53 2007 -0500 @@ -306,11 +306,12 @@ void 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(get_current_input_playback()); + 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 @@ -324,8 +325,8 @@ playback_pause(); } + playback->plugin->seek(playback, time); free_vis_data(); - get_current_input_playback()->plugin->seek(get_current_input_playback(), time); if (restore_pause) {