changeset 3168:ee8a1ed30826 trunk

playback_seek(): several WTFs in here (probably from XMMS) fixed
author William Pitcock <nenolod@atheme-project.org>
date Wed, 25 Jul 2007 19:10:53 -0500
parents 49c25e9ecf6d
children b1964057a1a0 603577228518 3d740a3c5e16
files src/audacious/playback.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)
     {