changeset 3416:820c2db12041 trunk

Remove input_get_song_info().
author William Pitcock <nenolod@atheme.org>
date Sun, 02 Sep 2007 16:24:31 -0500
parents abfa5f49ff07
children db83b4a786ed c440e07a23cc 05b732174e5f
files src/audacious/input.c src/audacious/input.h
diffstat 2 files changed, 0 insertions(+), 63 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/input.c	Fri Aug 31 22:54:13 2007 +0100
+++ b/src/audacious/input.c	Sun Sep 02 16:24:31 2007 -0500
@@ -586,67 +586,6 @@
         playback->plugin->set_eq(on, preamp, bands);
 }
 
-void
-input_get_song_info(const gchar * filename, gchar ** title, gint * length)
-{
-    InputPlugin *ip = NULL;
-    Tuple *tuple;
-    gchar *tmp = NULL, *ext;
-    gchar *filename_proxy;
-    ProbeResult *pr;
-
-    g_return_if_fail(filename != NULL);
-    g_return_if_fail(title != NULL);
-    g_return_if_fail(length != NULL);
-
-    filename_proxy = g_strdup(filename);
-
-    pr = input_check_file(filename_proxy, FALSE);
-
-    if (!pr)
-        return;
-
-    ip = pr->ip;
-
-    g_free(pr);
-
-    if (ip && ip->get_song_info) {
-        ip->get_song_info(filename_proxy, &tmp, length);
-        *title = str_to_utf8(tmp);
-        g_free(tmp);
-    }
-    else {
-        tuple = tuple_new();
-
-        tmp = g_strdup(filename);
-        if ((ext = strrchr(tmp, '.')))
-            *ext = '\0';
-
-        tuple_associate_string(tuple, "file-name", g_path_get_basename(tmp));
-
-        if (ext)
-            tuple_associate_string(tuple, "file-ext", ext + 1);
-
-        tuple_associate_string(tuple, "file-path", g_path_get_dirname(tmp));
-
-        tmp = tuple_formatter_process_string(tuple, get_gentitle_format());
-        if (tmp != NULL && *tmp != '\0') {
-            (*title) = str_to_utf8(tmp);
-            g_free(tmp);
-        }
-        else {
-            (*title) = filename_to_utf8(tuple_get_string(tuple, "file-name"));
-        }
-
-        (*length) = -1;
-
-        mowgli_object_unref(tuple);
-        tuple = NULL;
-    }
-
-    g_free(filename_proxy);
-}
-
 Tuple *
 input_get_song_tuple(const gchar * filename)
 {
--- a/src/audacious/input.h	Fri Aug 31 22:54:13 2007 +0100
+++ b/src/audacious/input.h	Sun Sep 02 16:24:31 2007 -0500
@@ -61,8 +61,6 @@
 gint input_get_time(void);
 void input_set_eq(gint on, gfloat preamp, gfloat * bands);
 void input_seek(gint time);
-void input_get_song_info(const gchar * filename, gchar ** title,
-                         gint * length);
 
 guchar *input_get_vis(gint time);
 void input_update_vis_plugin(gint time);