diff src/madplug/plugin.c @ 807:0f9c8d4d3ac4 trunk

[svn] - make use of new millisecond seek API.
author yaz
date Mon, 12 Mar 2007 11:03:24 -0700
parents 7ac48f3855b1
children 44a922a4a591
line wrap: on
line diff
--- a/src/madplug/plugin.c	Mon Mar 12 10:59:21 2007 -0700
+++ b/src/madplug/plugin.c	Mon Mar 12 11:03:24 2007 -0700
@@ -460,15 +460,19 @@
     playback->output->pause(paused);
 }
 
-static void audmad_seek(InputPlayback *playback, int time)
+static void audmad_mseek(InputPlayback *playback, gulong millisecond)
 {
     g_mutex_lock(pb_mutex);
     info.playback = playback;
-    /* xmms gives us the desired seek time in seconds */
-    info.seek = time;
+    info.seek = millisecond;
     g_mutex_unlock(pb_mutex);
 }
 
+static void audmad_seek(InputPlayback *playback, gint time)
+{
+    audmad_mseek(playback, time * 1000);
+}
+
 /**
  * Scan the given file or URL.
  * Fills in the title string and the track length in milliseconds.
@@ -741,6 +745,7 @@
     mad_plugin->get_song_tuple = audmad_get_song_tuple;
     mad_plugin->is_our_file_from_vfs = audmad_is_our_fd;
     mad_plugin->vfs_extensions = fmts;
+    mad_plugin->mseek = audmad_mseek;
 
     return mad_plugin;
 }