little cleanup of plugin stuff
git-svn-id: https://svn.musicpd.org/mpd/trunk@1247 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -36,7 +36,6 @@
|
||||
#include "../log.h"
|
||||
#include "../utils.h"
|
||||
#include "../tag.h"
|
||||
#include "../path.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@@ -613,21 +612,19 @@ int mp3_decode(OutputBuffer * cb, DecoderControl * dc, InputStream * inStream) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
MpdTag * mp3_tagDup(char * utf8file) {
|
||||
MpdTag * mp3_tagDup(char * file) {
|
||||
MpdTag * ret = NULL;
|
||||
int time;
|
||||
|
||||
ret = id3Dup(utf8file);
|
||||
ret = id3Dup(file);
|
||||
|
||||
time = getMp3TotalTime(rmp2amp(utf8ToFsCharset(utf8file)));
|
||||
time = getMp3TotalTime(file);
|
||||
|
||||
if(time>=0) {
|
||||
if(!ret) ret = newMpdTag();
|
||||
ret->time = time;
|
||||
}
|
||||
|
||||
if(ret) validateUtf8Tag(ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user