aboutsummaryrefslogtreecommitdiffstats
path: root/src/song.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:08 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:27:08 +0200
commite41be362a1dc5691721d72b7f915e32d7f5272bb (patch)
tree296478ef28a6c2a9dbf54e39328b754223459cf2 /src/song.c
parentcdaa26c81d692fefe5c9c2a4a01dcff633c99564 (diff)
downloadmpd-e41be362a1dc5691721d72b7f915e32d7f5272bb.tar.gz
mpd-e41be362a1dc5691721d72b7f915e32d7f5272bb.tar.xz
mpd-e41be362a1dc5691721d72b7f915e32d7f5272bb.zip
renamed InputPlugin to struct decoder_plugin
"decoder plugin" is a better name than "input plugin", since the plugin does not actually do the input - InputStream does. Also don't use typedef, so we can forward-declare it if required.
Diffstat (limited to 'src/song.c')
-rw-r--r--src/song.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/song.c b/src/song.c
index a8ab4284f..920bf23a6 100644
--- a/src/song.c
+++ b/src/song.c
@@ -25,6 +25,7 @@
#include "path.h"
#include "playlist.h"
#include "inputPlugin.h"
+#include "decoder_api.h"
#include "myfprintf.h"
#define SONG_KEY "key: "
@@ -62,7 +63,7 @@ Song *newSong(const char *url, int type, Directory * parentDir)
assert(type == SONG_TYPE_URL || parentDir);
if (song->type == SONG_TYPE_FILE) {
- InputPlugin *plugin;
+ struct decoder_plugin *plugin;
unsigned int next = 0;
char path_max_tmp[MPD_PATH_MAX];
char *abs_path = rmp2amp_r(path_max_tmp,
@@ -286,7 +287,7 @@ void readSongInfoIntoList(FILE * fp, SongList * list, Directory * parentDir)
int updateSongInfo(Song * song)
{
if (song->type == SONG_TYPE_FILE) {
- InputPlugin *plugin;
+ struct decoder_plugin *plugin;
unsigned int next = 0;
char path_max_tmp[MPD_PATH_MAX];
char abs_path[MPD_PATH_MAX];