From d4599578aacf0fa559ea71157580c3d02f6c5eff Mon Sep 17 00:00:00 2001 From: waker Date: Fri, 20 May 2011 20:40:13 +0200 Subject: minor fixes in sndfile plugin --- plugins/sndfile/sndfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/sndfile') diff --git a/plugins/sndfile/sndfile.c b/plugins/sndfile/sndfile.c index ba4e6993..57d157ea 100644 --- a/plugins/sndfile/sndfile.c +++ b/plugins/sndfile/sndfile.c @@ -265,7 +265,7 @@ sndfile_read (DB_fileinfo_t *_info, char *bytes, int size) { int n = 0; if (info->read_as_short) { - n = sf_read_short(info->ctx, (short *)bytes, size/samplesize); + n = sf_readf_short(info->ctx, (short *)bytes, size/samplesize); } else { n = sf_read_raw (info->ctx, (short *)bytes, size); @@ -439,7 +439,7 @@ sndfile_insert (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname) { }; if (inf.format&0x000f <= SF_FORMAT_VORBIS) { - deadbeef->pl_add_meta (it, "SF_FORMAT", subformats[inf.format&0x000f]); + deadbeef->pl_add_meta (it, ":SF_FORMAT", subformats[inf.format&0x000f]); } DB_playItem_t *cue_after = deadbeef->plt_insert_cue (plt, after, it, totalsamples, samplerate); -- cgit v1.2.3