changeset 1471:4c5ceb777d60 trunk

[svn] - override InputPlugin::set_info.
author nenolod
date Wed, 02 Aug 2006 22:25:35 -0700
parents cefd1ff614dd
children 04cdccf13105
files ChangeLog Plugins/Input/cue/cuesheet.c
diffstat 2 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Aug 02 19:49:45 2006 -0700
+++ b/ChangeLog	Wed Aug 02 22:25:35 2006 -0700
@@ -1,3 +1,12 @@
+2006-08-03 02:49:45 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [1854]
+  - finishing touches
+  
+
+  Changes:        Modified:
+  +3 -0           trunk/Plugins/Input/cue/cuesheet.c  
+
+
 2006-08-03 02:34:19 +0000  William Pitcock <nenolod@nenolod.net>
   revision [1852]
   - fix a bug in the tuple builder
--- a/Plugins/Input/cue/cuesheet.c	Wed Aug 02 19:49:45 2006 -0700
+++ b/Plugins/Input/cue/cuesheet.c	Wed Aug 02 22:25:35 2006 -0700
@@ -216,6 +216,11 @@
 	free_cue_info();
 }
 
+static void set_info_override(gchar * title, gint length, gint rate, gint freq, gint nch)
+{
+	cue_ip.set_info(playlist_position->title, length, rate, freq, nch);
+}
+
 static void play_cue_uri(gchar *uri)
 {
         gchar *path2 = g_strdup(uri + 6);
@@ -238,6 +243,7 @@
 
 	if (real_ip != NULL)
 	{
+		real_ip->set_info = set_info_override;
 		real_ip->output = cue_ip.output;
 		real_ip->play_file(cue_file);
 		real_ip->seek(cue_tracks[track].index / 1000);	/* XXX: seek doesn't use frames? strange... -nenolod */