summaryrefslogtreecommitdiff
path: root/plugins/sndfile
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-05-20 20:40:13 +0200
committerGravatar waker <wakeroid@gmail.com>2011-05-20 20:40:13 +0200
commitd4599578aacf0fa559ea71157580c3d02f6c5eff (patch)
treea1e1bcfd4893a26b74c601d18025918ff3083d5a /plugins/sndfile
parentdd7349a00b84b73058b84cb3fc6cfc77d5a9090f (diff)
minor fixes in sndfile plugin
Diffstat (limited to 'plugins/sndfile')
-rw-r--r--plugins/sndfile/sndfile.c4
1 files changed, 2 insertions, 2 deletions
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);